Edit: I think I'm miss understanding the question. Are you trying to view the keys and values from the array OR extract them for use in your script?
What about var_dump() function to dump the array?
<? print var_dump($var); ?>
That will print all the info about your array. Hope this helps..