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
- 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 style of control
> structure syntax is docu
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
3 matches
Mail list logo