Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. What will be the output of the following PHP code?
    < ?php  $score = 1234; $scoreboard = (array) $score; echo $scoreboard[0]; ?>
  2. A.
    1
    B.
    Error
    C.
    1234
    D.
    2

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The (array) is a cast operator which is used for converting values from other data types to array.


Be The First To Comment