Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. Which of following variables can be assigned a value to it?
    (i) $3hello
    (ii) $_hello
    (iii) $this
    (iv) $This
  2. A.
    All of the mentioned
    B.
    Only (ii)
    C.
    (ii), (iii) and (iv)
    D.
    (ii) and (iv)

    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