Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. Which of following variables can be assigned a value to it?
    1. $3hello
    2. $_hello
    3. $this
    4. $This

  2. A.

     All of the mentioned

    B.

     Only 2

    C.

     2, 3 and 4

    D.

     2 and 4

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    A variable can’t start with a number. Also $this is a special variable that can’t be assigned, but $This can be assigned.


Be The First To Comment