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

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $p = "$Test";
    $q = "/$Example";
    echo $p,$q;
    ?>
    1. Test
    2. Example
    3. /
    4. Nothing
    5. None of these
Correct Option: C

Since variables $Test and $Example is not defined we only see / as output.



Your comments will be displayed only after manual approval.