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
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
- 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
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
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
5 matches
Mail list logo