How EMBARRASSING!
I just found some code I wrote…
$result = ($a == $b) ? true : false;
Or, in non-ternary notation:
if ($a == $b)
result = true;
else
result = false;
Or, in english … evaluate $a == $b and if the result is true, return true, otherwise return false.
I should have just written: $result = $a == $b.
*embarrassed*
December 13th, 2005 in
Uncategorized
You lie! You must have got that straight from Computer Stupidities!