You are here: write manually an array objects « PHP Language « IT news, forums, messages
write manually an array objects

Posted by artev on 07/07/07 13:57

for make test, for simulate array I write this:
var array1= new Array("1","2","3","4");

how can I simulate an aray object?
with a var_dump on an array take from a db I havh this:


array(4) { [0]=> object(stdClass)(3)
{ ["id"]=> "28" ....}
[1]=> object(stdClass)(3)
{ ["id"]=> "29" .... }
[2]=> object(stdClass)(3)
{ ["id"]=> "21" ..... }
}

is possible to rewrite manually (I make so but not work)
var array1=new Array( [0]=> object(stdClass)(1) { ["id"]=> "28" ....}
[1]=> object(stdClass)(1) { ["id"]=> "29" .... }
[2]=> object(stdClass)(1) { ["id"]=> "21" ..... }
)

 

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

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