Re: Syntax
| From: | Jason Soza | Date: | Tue, 23 Jul 2002 19:52:21 +0000 |
| Subject: | Re: Syntax | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14900@lists.php.net to get a copy of this message | ||
That's (roughly) a shorthand if statement. (if)?(then):(else);
So this:
if($i==0) {
$i++;
} else {
$i*20;
}
Is the same as this:
($i==0)?($i++):($i*20);
Jason Soza
----- Original Message -----
From: "Kit Kerbel" <kerbel5@hotmail.com>
Date: Tuesday, July 23, 2002 11:34 am
Subject: [PHP-WIN] Syntax
>
> What, if you please, does this syntax denote exactly.
>
> ($i==0?($i):($i*20))
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>