Hi,
-Original Message-
I am confused by the shorthand if notation.
For example I just saw this PHP snippet on another forum
Basically:
(condition) ? true : false;
Example:
$var == red;
($var == red) ? echo 'true' : echo 'false';
-Original Message-
From: adrian GREEMAN
[mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 15:23
I am confused by the shorthand if notation.
For example I just saw this PHP snippet on another forum
?
$bkgndClass = $bkgndClass == darkBkgnd ? liteBkgnd :
darkBkgnd;
}
?
I think
2 matches
Mail list logo