RosettaCodeData/Task/Conditional-structures/PHP/conditional-structures-1.php
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

22 lines
181 B
PHP

<?php
$foo = 3;
if ($foo == 2)
//do something
if ($foo == 3)
//do something
else
//do something else
if ($foo != 0)
{
//do something
}
else
{
//do another thing
}
?>