Home » PHP » PHP Functions » Question
  1. Which of the following are valid function names?
    1. $function()
    2. .function()
    3. function()
    4. €()
    5. None of these
Correct Option: A

Except a) others are invalid names. According to the specified regular expression ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*), a function name like this one is valid.



Your comments will be displayed only after manual approval.