|
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]
|