You are here: Re: is_array() is failing on what is clearly an array « PHP Programming Language « IT news, forums, messages
Re: is_array() is failing on what is clearly an array

Posted by Janwillem Borleffs on 05/28/05 18:19

lkrubner@geocities.com wrote:
> This driving me crazy. I get an array. I use print_r() to prove to
> myself it is an array. An array prints to the screen. The next line is
> an is_array() test, and the code tests false and I get the error
> message, "we could not find the array". What the hell?
>

print_r(array()); output:

Array
(
)

print_r(new stdClass); output:

stdClass Object
(
)

If you see something simular to the latter, test with is_object().


JW

 

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

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