I have a PHP file that echoes a variable:
<?=echo $myVariable;?>
$myVariable
is data that I pull from a MySQL variable and it may include code like php echo
itself in it:
<div dir="rtl">
Hello $data['assigned_vars']['first_name'];<br />
your email <?=$data['assigned_vars']['email'];?><br />
your password <?=$data['assigned_vars']['user_password'];?>
</div>
I'm using ob buffering
to store the entire string and then return
. How can I execute the PHP code inside the PHP string?