working with arrays

Posted by user295189 on Stack Overflow See other posts from Stack Overflow or by user295189
Published on 2010-04-19T20:02:35Z Indexed on 2010/04/19 20:03 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

I currently do a query which goes through the records and forms an array. the print_r on query gives me this

print_r($query) yields the following:

Array ( [0] => ( [field1] => COMPLETE [field2] => UNKNOWN [field3] => Test comment ) [1] => ( [field1] => COMPLETE [field2] => UNKNOWN [field3] => comment here ) [2] => ( [field1] => COMPLETE [field2] => UNKNOWN [field3] => checking ) [3] => ( [field1] => COMPLETE [field2] => UNKNOWN [field3] => testing ) [4] => ( [field1] => COMPLETE [field2] => UNKNOWN [field3] => working ) )

somehow I want to take this array and convert it back to php. So for example some thing like this

$myArray = array( ...)

then $myArray should yield the samething as the print_r($query) yeilds. Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about php5