Re: Noob QUESTION HERE...
That's an if statement that uses the ternary operator:
PHP Code:
// one liner
$foobar = ($row['blah']== "") ? "0" : $row['blah'];
// would look like this written out
if($row['blah'] == "")
{
$foobar = "0";
}
else
{
$foobar = $row['blah'];
}
Re: Noob QUESTION HERE...
hmm... okay.... thanks... lol... that helped.
It seems bery useful.Confusing... but useful nontheless.
Hmm... What would i look for on PHP.NET for more examples of this...?
i tried ternary , ternary operations, ternary operator, ternary operators
Re: Noob QUESTION HERE...