Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    $num = 5;
    print($num);
    print $num;
    ?>
    1. 5
    2. 0
    3. Error
    4. Nothing
    5. 55
Correct Option: E

Print can be used with or without parentheses.



Your comments will be displayed only after manual approval.