Execute a string as if it were PHP code using the eval( ) function : eval « Utility Function « PHP
- PHP
- Utility Function
- eval
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