Discussion :: PHP - CS
-
What will be the output of the following PHP code?
<?php
function sayHello()
{
echo "HelloWorld<br />";
}
$function_holder = "sayHello";
$function_holder();
?>
Answer : Option D
Explanation :
It is possible to assign function names as strings to variables and then treat these variables exactly as you would the function name itself.
Be The First To Comment