Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    $a = '4' ;

    print + + $a;

    ?>

  2. A.

     no output

    B.

     error

    C.

     5

    D.

     0

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The character is type casted to integer before multiplying.


Be The First To Comment