Re: if then else short form

From: Date: Fri, 21 Jan 2005 12:24:37 +0000
Subject: Re: if then else short form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206927@lists.php.net to get a copy of this message
language tutorial (basic)... >if ( a=b ) ? a=1 ; a=2; a = a==b ? 1 : 2 ; Cheer, Manoj Kr. Sheoran Software Engg. Daffodil Software Ltd. web: www.daffodildb.com INDIA On Fri, 2005-01-21 at 17:31, Ben Edwards wrote: > I seem to remember seing someone use a abreaviated form of a > if/them/else of the type that can be used in java. > > It was something like > > if ( a=b ) ? a=1 ; a=2; > > Anybody know what the correct syntax is? > > Ben > -- > Ben Edwards - Poole, UK, England > WARNING:This email contained partisan views - dont ever accuse me of > using the veneer of objectivity > If you have a problem emailing me use > http://www.gurtlush.org.uk/profiles.php?uid=4 > (email address this email is sent from may be defunct)

« previous php.general (#206927) next »