You are here: Re: PHP - Determine if array key is blank, numeric or a string « PHP « IT news, forums, messages
Re: PHP - Determine if array key is blank, numeric or a string

Posted by Justin Koivisto on 11/12/05 01:26

sjreichard@gmail.com wrote:
> I need to write a script that scans through several arrays. I need to
> determine if the key is blank, numeric or a string like below:
>
> $array[] = key is blank (I know if will set it to 0 during a
> loop)
> $array['string'] = key is a string
> $array[3] = key is numeric

Actually, if a key is "blank" - it is actually a string (empty string)
and there can only be one of those in any given array...

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.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

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