Menu
Hello. Suppose I know name of a function in php that I have saved in a string. What can I do to call the function based on the knowledge of the string only? (I have met the same problem years ago when studying Pascal and there was a solution)
[code]
<!DOCTYPE html>
<html lang=”en”>
<head>
</head>
<body>
<?php
function treasureLocation(){
echo ‘There is a hidden treasure here: 49.44131895111605, 11.052444369347798.’;
}
$myString=’treasureLocation’;
/* Now what can I do? */
?>
</body>
</html>