You are here: Testing for an empty array (with null values) « PHP « IT news, forums, messages
Testing for an empty array (with null values)

Posted by zzapper on 09/30/05 20:27

Hi,
I can use

if (count($somearray) > 0) to test for an empty array.

It is possible to have an array with null values which is effectively empty but fails the above as
it's count (I belive is greater than 0).

Any ideas

--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/

 

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

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