echo ($a === $b);?>"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    $a = 5;

    $b = 5;

    span class="sys-fun">echo ($a === $b);

    ?>

  2. A.

     5 === 5

    B.

     Error

    C.

     1

    D.

     False

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    === operator returns 1 if $a and $b are equivalent and $a and $b have the same type.


Be The First To Comment