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

Inter{$str}Mania, single quotes are not parsed.



Your comments will be displayed only after manual approval.