I have an object array $this->result
When I echo $this->result
I get Array
.
When I print_r($this->result)
I get a blank screen.
How do I find what is being stored in this object array?
EDIT: By blank screen I mean the nothing is being rendered at all.
EDIT2: Here is the code that renders, but I don't know what it's doing.
<?php
foreach ($this->result as $r){
extract($r);
// Then there is a bunch of code beneath here
// that displays different results
}
?>
However if I do this, the page no longer renders at all.
echo '<pre>' . print_r($this->result, true) . '</pre>';
foreach ($this->result as $r){
extract($r);
// Then there is a bunch of code beneath here
// that displays different results
}
EDIT3:
After installing and turning on xdebug, var_dump
now displays the data. (however print_r()
still does not). Any thoughts as to why that might be?