Using print_r in ob_start
<p>As mentioned in the manual it's not working. i tried var_dump it too suffers from the same problem. </p>

<pre><code>ob_start()
$debugdata=print_r ($var,true)
</code></pre>

<p>This prints the result on screen than storing to a variable </p>
