"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following php code?

    <?php

    $num = 1;

    $num1 = 2;

    print $num . "+". $num1;

    ?>

  2. A.

     3

    B.

     1+2

    C.

     1.+.2

    D.

     Error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment