putting print_r results in variable
<p>In PHP I can say:</p>

<pre><code>print_r($var);
</code></pre>

<p>What I can't do (at least I don't know how) is:</p>

<pre><code>$var_info = print_r($var);
</code></pre>

<p>How can I accomplish the effect of putting the results of a <code>print_r</code> inside a variable?<br/>
PHP v5.3.5</p>
