Re: [PHP] Alternative control structure syntax

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 8:21 pm, Dan Rossi said: > Does anyone use it, is it more efficient on the compiler and coding to > do this > > switch($i): > case 0: > > break; > endswitch; > > instead of this ? > > switch($i) { > case 0: > > break; > } The alternative syntax, as far

[PHP] Alternative control structure syntax

2005-04-06 Thread Dan Rossi
Does anyone use it, is it more efficient on the compiler and coding to do this switch($i): case 0: break; endswitch; instead of this ? switch($i) { case 0: break; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] alternative control structure syntax

2003-01-15 Thread Matt
- Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 8:34 PM Subject: [PHP] alternative control structure syntax > Can someone point me to the page in the manual where this sty

Re: [PHP] alternative control structure syntax

2003-01-15 Thread Michael Sims
On Thu, 16 Jan 2003 12:34:26 +1100, you wrote: >Hi, > >Can someone point me to the page in the manual where this style of control >structure syntax is documented? > >$var = ($something) ? "foo" : "bah"; This is the ternary operator. It's kinda buried in the documentation: http://www.php.net/man

[PHP] alternative control structure syntax

2003-01-15 Thread Justin French
Hi, Can someone point me to the page in the manual where this style of control structure syntax is documented? $var = ($something) ? "foo" : "bah"; ??? Can't see it, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php