Here is what I am trying to do:
<?php
$my_str = "My String";
$str = "%my_str";
$str = str_replace("%", "$", $str);
echo $str;
?>
The above code prints '$my_str' to the screen. But I want it to print 'My String', as in the actual value of the variable $my_str
Anyone know how to do this?
The reason I want this is because I'm in the process of writing my own, very basic, parsing language so I kinda need this to be functional before I can continue.