Answers for "php eval"

PHP
1

php eval

<?php
  $string = "beautiful";
  $time = "winter";
  $str = 'This is a $string $time morning!';
  echo $str. "<br>";
  eval("\$str = \"$str\";");
  echo $str;
?>
// This is a $string $time morning!
// This is a beautiful winter morning!
Posted by: Guest on March-20-2021

Browse Popular Code Answers by Language