For example if I have this PHP code
$template = 'A = {$a}, b = {$b}';
$a = "A";
$b = "B";
eval("\$output = \"".$template."\";");
echo $output;
The result would be A = A, b = B
. But if I don't want eval() to parse the var $b (without using unset()), what should I do?