is_array() doesn't work on DOM properties?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux