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*
1 Comment
Other Links to this Post
RSS feed for comments on this post. TrackBack URI
By LoopyNZ, December 13, 2005 @ 5:11 pm
You lie! You must have got that straight from Computer Stupidities!