I am trying to print an array in magento but it does not echo anything. In the file
at around line 87 there is a piece of code something like this
<?php foreach ($_rates as $_rate): ?>
When I try to output the contents of $_rates variable using
<?php echo "<pre>";print_r($_rates->getData());die;?>
I get an error stating Call to a member function getData() on array, I understood from this that $_rates variable is an array. So when I try to use print_r($_rates) to see the content of $_rates nothing is outputted on the screen, I just get a blank screen.
My question is if $_rates is an array then why I am not able to print it on the screen.