I am new to PHPand learned about features PHPfrom w3schools. He said: "PHP allows a function call when the function name is in a variable"
This program worked
<?php
$v = "var_dump";
$v('foo');
?>
But this program did not work:
<?php
$v = "echo";
$v('foo');
?>
But if I do echo('foo');, it works.
What am I doing wrong?
source
share