Control Structure Syntax Question
| From: | Ahbaid Gaffoor | Date: | Tue, 09 Mar 2004 23:42:21 +0000 |
| Subject: | Control Structure Syntax Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179951@lists.php.net to get a copy of this message | ||
Someone had posted a tip for using an abbreviated form of an if.. else structure...
It looked something like:
$x : action1 : action2;
I'm trying to shorten having to do the following:
if ($x) {
action1;
} else {
action 2;
}
can someone please post the syntax if they know it? I am reading the fine documentation but can't find it...
many thanks
Ahbaid