Blog
The Haycroft Media Blog covers all aspects of website design and development from the web browsers being used through to the standards that govern the world wide web. As a website design and development company, it is imperative that we keep abreast of all the latest news and happenings in our field, and here we present the major stories along with tutorials, tips and other web-programming related items.
PHP: 10 things you may not know
10 things you (probably) didn’t know about PHP.
Great post on Rightbrainnetworks.com. Of particular interest is the reference to the Ternary Operator. Put simply if you are using an “IF” loop, and only testing two conditions, instead of using:
“if (condition1 == “set”)
{
$variable = 1
}
else
{
$variable = 2
}
you can use:
$variable = (condition1 == “set”) ? 1 : 2;
[ Back ]