I have an array like this:
Array ( [0] => stdClass Object ( [id] => 1 [title] => ABC [sentece] => blablabla... [topic] => Science ) [1] => stdClass Object ( [id] => 2 [title] => DEF [sentece] => nomnomnom... [topic] => Technology )
How to add an array in stdClass Object in php?
For example: I want to add this array:
$number = array (82, 61);
So, I will have this array:
Array ( [0] => stdClass Object ( [id] => 1 [title] => ABC [sentece] => blablabla... [topic] => Science [number] => 82) [1] => stdClass Object ( [id] => 2 [title] => DEF [sentece] => nomnomnom... [topic] => Technology [number] => 61
)
Thanks for your help.
->
? – deceze May 9 '13 at 10:03