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

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $Fiv$e = 5;
    $Si$x = 6;
    $Seve$n = 7;
    $Eigh$t = 8;
    echo "$Fiv$e / $Si$x + $Seve$n / $Eigh$t";
    ?>
    1. 0.25
    2. Error
    3. 0
    4. 25.2
    5. None of these
Correct Option: B

You can not use the $ in between the variable name.



Your comments will be displayed only after manual approval.