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

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $a = 41;
    $b = 13;
    $c = 10;
    $d = $c + $a + $b;
    echo "$d";
    ?>
    1. Error
    2. 41
    3. 13
    4. 10
    5. 64
Correct Option: E

Normal addition of variables a, b and c occurs and result of 64 will be displayed.



Your comments will be displayed only after manual approval.