You are here: how control struct evaluate « PHP Programming Language « IT news, forums, messages
how control struct evaluate

Posted by Michael G on 08/01/05 06:10

Hi,

$PHONETIC is an array of strings. How can !$PHONETIC['d'], in the case
below, evalutae to true. It is a string not a boolean. It would make more
sense if it evalutated to null.

Thanks Mike

<?php

$PHONETIC = array('a' => 'alpha', 'b' => 'bravo', 'c' => 'charlie');

if(!$PHONETIC['d']):
echo 'true';
else:
echo 'false';
endif

?>




----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

 

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

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