Its a ternary operator
look at
http://www.phpbuilder.com/board/showthread.php?threadid=10235547
http://www.phpbeginner.com/columns/maxim/ternary
pete
Adrian Greeman wrote:
I am confused by the shorthand "if" notation.
For example I just saw this PHP snippet on another forum
I think it is an if
Ternary operator. Look in the comparison operators section:
http://us2.php.net/manual/en/language.operators.comparison.php
-Shawn
"Adrian Greeman" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
>
> I am confused by the shorthand "if" notation.
> For example I just saw this PHP snipp
2 matches
Mail list logo