Examveda
Examveda

What will be the output of the following PHP code ?
<?php
function 2myfunc()
{
    echo "Hello World";
}
2myfunc();
?>

A. Hello World

B. No Output

C. ERROR

D. None of the mentioned

Answer: Option C

Solution(By Examveda Team)

Function cannot begin with a number.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions