While learning PHP online I am stopped at this eval
function please help me. Why is there is a slash before $str2
in eval
statement?
<?php
$string = "beautiful";
$time = "winter";
$str = 'This is a $string $time morning!';
echo $str. "<br>";
eval("\$str2 = \"$str\";");
echo $str2;
?>