Reply to Re: Design methodology question

Your name:

Reply:


Posted by David Haynes on 06/21/06 08:34

Chung Leong wrote:
> David Haynes wrote:
>> BTW: Why doesn't the foreach() handle the !empty() case? It would make
>> more sense IMHO.
>
> Do this:
>
> foreach((array) $clowns as $name => $clown) { }
>
> Null converts to an empty array.
>

I hadn't thought of that. Good idea!

-david-

[Back to original 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

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