It is not mandatory to use the parentheses in an if-statement.
This is an if-statement on one line and it's perfectly valid code:
<?php
$a = "foo";
if ("foo" == $a) echo "bar";
?>
will output:
"bar"
|
|
| |||||||||||||||
| Copyright © 2001-2005 The PHP Group All rights reserved. |
This unofficial mirror is operated at:
The Server Pages Last updated: Thu May 19 18:35:34 2005 EDT |