"> What will be the output of the following PHP code ?<?phpFive

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    Five = 5;
    Six = 6;
    Seven = 7;
    Eight = 8;
    echo "Five / Six + Seven / Eight";
    ?>
    1. Error
    2. 5
    3. 5.5
    4. 1
Correct Option: A

Variables should start with a $ symbol, since Five, Six, Seven, Eight don’t begin with $ symbol we’ll get an error.



Your comments will be displayed only after manual approval.