Posted by kenoli on 05/10/06 17:15
Can someone help me interpret this snippet?
printf("<p>The two arrays are %sidentical.</p>\n", $arr1 === $arr2 ? ''
: 'not ');
It is easy to see what it does. It compares two arrays and inserts
either a space or a "not" space in the template string.
The parts I don't understand are the "?" and the ":". I can find no
documentation anywhere of the "?" and the ":".
I have had trouble generally getting good documentation on printf() and
sprintf().
Thanks,
--Kenoli
Kenoli Oleari
Neighborhood Assemblies Network
kenoli@igc.org
510-601-8217
http://www.horizonsofchange.com
http://www.sfnan.org
Navigation:
[Reply to this message]
|