I am trying to use the eval () function as follows:
$foo = 'eval'; $bar = 'echo 1;'; $foo($bar);
But I get an error: Fatal error: Call to undefined function eval ()
This is weird because the following code works
$foo = 'base64_encode'; $bar = 'foobar'; echo $foo($bar);
Can anyone help with this?
source share