"> What will be the output of the following PHP code ?<?php$v

Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $v = 'Mania';
    echo "Inter$view";
    ?>
    1. Mania
    2. Inter
    3. view
    4. Inter$view
    5. None of these
Correct Option: D

Inter, because $v became $view, which is undefined.



Your comments will be displayed only after manual approval.