Ask Question
3 January, 20:42

Accepted identifier for a variable in PHP except:

Select one:

a. $_Puihaha

b. & Puihaha

c. $Pui_haha

d. $Puihaha

+1
Answers (1)
  1. 3 January, 22:31
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers