"> 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. Nothing
    2. 1.25
    3. 3.52
    4. Error
    5. None of these
Correct Option: D

You can't use - in a variable name.



Your comments will be displayed only after manual approval.