[thelist] stupid PHP question

lustig at brandeis.edu lustig at brandeis.edu
Thu Jul 7 09:17:21 CDT 2005

> I have spent hours looking through my PHP books, but can't find it. Can
> someone please explain what the question mark is doing? And the count($row)
> : 0?

It's the ternary operator, which is an alternate syntax for an if() statement.
Read more at http://us2.php.net/operators.comparison.


More information about the thelist mailing list