Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    $a = '12345';

    echo 'qwe{$a}rty';

    ?>

  2. A.

     qwe12345rty

    B.

     qwe{$a}rty

    C.

     error

    D.

     no output

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    qwe{$a}rty, single quotes are not parsed.


Be The First To Comment