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

Home » PHP » PHP Introduction » Question
  1. What will be the output of the following php code?
    <?php
    $n = 10;
    $n1 = 12;
    print $n . "+". $n1;
    ?>
    1. 10
    2. 12
    3. 10+12
    4. 12+10
    5. Error
Correct Option: C

.(dot) is used to combine two parts of the statement. Example ( $n. “Hello World” ) will output 10Hello World.



Your comments will be displayed only after manual approval.