Use the $key variable inside the loop, rather than the $oandaArr. As in
PHP Code:
<?php foreach ($oandaArr as $key): ?> <li><?php echo $key->EXPR; ?></li> ... <?php endforeach; ?>
The foreach ($oandaArr as $key) syntax means that the loop will go through all items in $oandaArr, and for each run in the loop $key will represent the current item.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 09-22-2011 at 08:05 AM..
|