note 97454 added to control-structures.alternative-syntax
| From: | chrisatthirstywebdotcom at osu1 dot php dot net | Date: | Tue, 20 Apr 2010 16:51:09 +0000 |
| Subject: | note 97454 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168458@lists.php.net to get a copy of this message | ||
I'm pretty sure ej-at-iconcept-dot-fo's code:
>>>
print $foo = ($hour < 12) ? "Good morning!" : "Good afternoon!";
<<<
is a 'Ternary Operator' and not technically 'Colon Syntax'
Source:
Ternary Operators - http://www.kwista.com/programming/ternary-operators/
Colon Syntax - http://www.kwista.com/programming/colon-syntax-in-php/
----
Server IP: 69.147.83.197
Probable Submitter: 65.181.60.42
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/97454
Del: integrated -- https://master.php.net/note/delete/97454/integrated
Del: useless -- https://master.php.net/note/delete/97454/useless
Del: bad code -- https://master.php.net/note/delete/97454/bad+code
Del: spam -- https://master.php.net/note/delete/97454/spam
Del: non-english -- https://master.php.net/note/delete/97454/non-english
Del: in docs -- https://master.php.net/note/delete/97454/in+docs
Del: other reasons-- https://master.php.net/note/delete/97454
Reject -- https://master.php.net/note/reject/97454
Search -- https://master.php.net/manage/user-notes.php