Ardesco's top PHP tips for the day:
Don't waste time with all the gubbins like this when printing a value out...
Instead enable short tags and do it the easy way!!
Secondly don't waste space with long winded if else statements...
Instead use the ternary operator!
Enjoy
Don't waste time with all the gubbins like this when printing a value out...
Code:
<?php echo("Hello World"); ?>
Code:
<?="Hello World"?>
Code:
if ($myVar == $foo) { $match=TRUE; } else { $match=FALSE; }
Code:
$myVar == $foo ? $match=TRUE : $match=FALSE;
Comment