Execute a string as if it were PHP code using the eval( ) function : eval « Utility Function « PHP






Execute a string as if it were PHP code using the eval( ) function

 
$str = '$i = 1; print $i;';
    eval($str);
  
  

Related examples in the same category