note 97454 deleted from control-structures.alternative-syntax by danbrown

From: Date: Tue, 20 Apr 2010 16:51:45 +0000
Subject: note 97454 deleted from control-structures.alternative-syntax by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168459@lists.php.net to get a copy of this message
Note Submitter: chris at thirstyweb dot com ---- 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/

« previous php.notes (#168459) next »