Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $num = '8' ;
    print + + $num;
    ?>
    1. Error
    2. 8
    3. Nothing
    4. 0
    5. None of these
Correct Option: B

The character is type casted to integer before multiplying.



Your comments will be displayed only after manual approval.