Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. Which of the following php statement/statements will store 111 in variable num?
    i) int $num = 111;
    ii) int mum = 111;
    iii) $num = 111;
    iv) 111 = $num;
  2. A.
    Both (i) and (ii)
    B.
    All of the mentioned.
    C.
    Only (iii)
    D.
    Only (i)

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    You need not specify the datatype in php.


Be The First To Comment