how to get the result from a php file into a string
<p>example i have a file template.php with:</p>

<pre><code>&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;?php echo $data['nombre'] ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;?php foreach($data['values] as $value): ?&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;?php echo $value ?&gt; &lt;/td&gt;         
    &lt;/tr&gt;
    &lt;?php endforeach; ?&gt;
&lt;/table&gt;
</code></pre>

<p>and i need the result into a string <code>$result = get_content_process('template.php',$data);</code> for use in other process.</p>

<pre><code>echo $result;
&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;Juan&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Male&lt;/td&gt;         
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Brown&lt;/td&gt;         
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
