note 104753 modified in control-structures.else by danbrown
| From: | danbrown@php.net | Date: | Tue, 05 Jul 2011 20:02:50 +0000 |
| Subject: | note 104753 modified in control-structures.else by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181266@lists.php.net to get a copy of this message | ||
This is valid syntax:
<?php
if ($a) print "a is true";
else print "a is false";
?>
A holdover from the bash-style compatibility in older PHP versions, perhaps.
--was--
This is valid syntax:
if ($a) print "a is true";
else print "a is false";
A holdover from the bash-style compatibility in older PHP versions, perhaps.
http://php.net/manual/en/control-structures.else.php