Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    function HelloFuncation()
    {
    echo "Hello Interview Mania\n";
    }
    $fun_holder = "HelloFuncation";
    $fun_holder();
    ?>
    1. Hello
    2. Interview
    3. Mania
    4. Hello Interview Mania
    5. None of these
Correct Option: C

It is possible to assign function names as strings to variables and then treat these variables exactly as you would the function name itself.



Your comments will be displayed only after manual approval.