"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    echo "This","was"|"a","bad"."idea";

    ?>

  2. A.

     Thiswasabadidea

    B.

     Thiswasbadidea

    C.

     Thiswas a badidea

    D.

     Thiswas abadidea

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    You can use only comma and dot operator to join starings, other characters do not have the same function.


Be The First To Comment