You are here: Help with ? and : « All PHP « IT news, forums, messages
Help with ? and :

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация