example i have a file template.php with:
<table>
    <tr>
        <td><?php echo $data['nombre'] ?></td>
    </tr>
    <?php foreach($data['values] as $value): ?>
    <tr>
        <td><?php echo $value ?> </td>         
    </tr>
    <?php endforeach; ?>
</table>
and i need the result into a string $result = get_content_process('template.php',$data); for use in other process.
echo $result;
<table>
    <tr>
        <td>Juan</td>
    </tr>
    <tr>
        <td>Male</td>         
    </tr>
    <tr>
        <td>Brown</td>         
    </tr>
</table>
 
     
     
     
     
    