You are here: Re: A different array question « PHP Programming Language « IT news, forums, messages
Re: A different array question

Posted by Steve on 08/20/07 14:01

is_array($value)


"Captain Nemo" <regal_zonophoneSPAM@yahooSPAM.com> wrote in message
news:v0hyi.9825$cw7.7926@text.news.blueyonder.co.uk...
| I've been writing code lately that loops through the $_POST and
| $_SESSION arrays and needs to determine if a particular member is a
| scalar or an array.
|
| I've found a test that works:
|
| while (list($key, $value) = each($_POST))
| {
| if ((string) $value == "Array")
| etc.
|
| but it really looks a bit tacky to me.
|
| Can anyone suggest something a bit more respectable?
|
| Thanks.
|
|
|

 

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

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