Reply to A different array question

Your name:

Reply:


Posted by Captain Nemo on 08/20/07 13:52

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.

[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

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