Help with ? and :
- From: "kenoli" <kenoli@xxxxxxx>
- Date: 10 May 2006 07:15:57 -0700
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@xxxxxxx
510-601-8217
http://www.horizonsofchange.com
http://www.sfnan.org
.
- Follow-Ups:
- Re: Help with ? and :
- From: Lars Eighner
- Re: Help with ? and :
- Prev by Date: Re: Email is blank to a .net address works fine for .com
- Next by Date: Re: Email is blank to a .net address works fine for .com
- Previous by thread: PHP / CURL
- Next by thread: Re: Help with ? and :
- Index(es):
Relevant Pages
|