You are here: is_array() doesn't work on DOM properties? « PHP « IT news, forums, messages
is_array() doesn't work on DOM properties?

Posted by John Smith on 07/25/05 01:33

I'm trying to avoid error messages while iterating
over DOM properties. e.g.

if(is_array($dom->stuff->props)) {
foreach($dom->stuff->props as $prop) {
...
}
}

It works without the is_array() check, but not with
it. I've done var_dumps and $dom->stuff->props is
indeed an array. I've also tried using an intermediate
variable ($stuff=$dom->stuff) then checking that, but
that doesn't work either).

John



____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

 

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

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