Re: question about ? :

From: Date: Wed, 19 Jun 2002 16:07:42 +0000
Subject: Re: question about ? :
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102959@lists.php.net to get a copy of this message
>>>>> "Mike" == Mike Ford <M.Ford@lmu.ac.uk> writes: >> -----Original Message----- From: Joel Boonstra >> [mailto:jboonstra@gospelcom.net] Sent: 19 June 2002 14:00 >> >> > OK, try this: why does >> > >> > $x = 3 + 5 - 7; >> > >> > produce different results from >> > >> > $x = 3 + (5 - 7); I still dont understand why something like <expr-a> ? <expr-b> : <expr-c> should evaluate differently than <expr-a> ? <expr-b> : (<expr-c>) where <expr-c> is ternary. consult the original question for an example. -- When the birdcage is open, | donate to causes I care about: the selfish bird flies away, | http://svcs.affero.net/rm.php?r=leed_25 but the virtuous one stays. |

« previous php.general (#102959) next »