note 35021 deleted from control-structures by didou
| From: | didou@php.net | Date: | Fri, 15 Aug 2003 20:21:36 +0000 |
| Subject: | note 35021 deleted from control-structures by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54237@lists.php.net to get a copy of this message | ||
Note Submitter: rumcho@yahoo.com
----
Since I did not see this on here I just decided to add it. It may go under a different category but
I am sure lots of people associate it with if/elseif/else construct.
=============================================
$a=1;
$b=2;
$a == $b ? print "are equal\n": print"are not equal\n";
=============================================
The syntax is a little off so I thought it would be a nice reference for people who are looking for
alternatives to the standard if/elseif/else.