"/>
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.

     This, was, a, bad, idea

    B.

     This was a bad idea

    C.

     Thiswasabadidea

    D.

     Error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    In an echo statement the comma operator is used to join strings.


Be The First To Comment