Hi there,
<?php
if ($b03 && $b04 && $b05 && $b07 && $b07 && $b09 && $b10)
{
?>
display this line
<?php
//endif
}?>
$b03 has a value of "0" - Why does php treat "0" as no value? No value would be if nothing is entered in this case. 0 is a possible value.
Can someone explain this to me? Also, if I'm coding things the wrong way here please tell me!
Thanks,
Gil
<?php
if ($b03 && $b04 && $b05 && $b07 && $b07 && $b09 && $b10)
{
?>
display this line
<?php
//endif
}?>
$b03 has a value of "0" - Why does php treat "0" as no value? No value would be if nothing is entered in this case. 0 is a possible value.
Can someone explain this to me? Also, if I'm coding things the wrong way here please tell me!
Thanks,
Gil
Comment