Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code ?

    <?php

    $a = 12;

    --$a;

    echo $a++;

    ?>

  2. A.

     11

    B.

     12

    C.

     10

    D.

     error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The + operator does union of arrays in that order, then the === operator compares key and value pairs.


Be The First To Comment