"> What will be the output of the following PHP code ?<?phpecho

Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    echo "it" . "is" . "a" . "good" . "name";
    ?>
    1. itisagoodname
    2. Error
    3. Nothing
    4. it.is.a.good.name
    5. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.