"> 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. Nothing
    2. itisgoodname
    3. it,is|a,good.name
    4. Error
    5. None of these
Correct Option: B

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



Your comments will be displayed only after manual approval.