convert object to array

Posted by zahir hussain on Stack Overflow See other posts from Stack Overflow or by zahir hussain
Published on 2010-03-19T11:42:32Z Indexed on 2010/03/19 12:11 UTC
Read the original article Hit count: 386

Filed under:
<?php

   print_r($response->response->docs);

?>

display the following

Array ( [0] => Object ( [_fields:private] => Array ( [id]=>9093 [name]=>zahir) Object ( [_fields:private] => Array ( [id]=>9094 [name]=>hussain)..)

how to change the object to array...

i want the following

Array([0]=>([id]=>9093 [name]=>zahir) [1]=>([id]=>9094 [name]=>hussain)...)

can i do?

no one can answer....

© Stack Overflow or respective owner

Related posts about php