Ask Question
27 July, 03:06

Accepted identifier for a variable in PHP except:

Select one:

a. $_Puihaha

b. & Puihaha

c. $Pui_haha

d. $Puihaha

+2
Answers (1)
  1. 27 July, 03:15
    0
    b. & Puihaha

    Explanation:

    PHP variables are supposed to start with a $ sign.

    Other rules followed by PHP variables are:

    Starting character in variable name (after $) must be letter or _.

    Other characters in variable names can be letters, numbers or _.

    a. $_Puihaha

    c. $Pui_haha

    d. $Puihaha

    satisfy these rules.

    Whereas, b. & Puihaha does not satisfy as it starts with '&'. Moreover it also contains an invalid space character in the variable.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Accepted identifier for a variable in PHP except: Select one: a. $_Puihaha b. & Puihaha c. $Pui_haha d. $Puihaha ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers