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

Discussion :: PHP - CS

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

    <?php

    echo ord ("hi");

    ?>

  2. A.

     106

    B.

     103

    C.

     104

    D.

     209

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The ord() function returns the ASCII value of the first character of a string. The ASCII value of h is 104, thus 104 was displayed.


Be The First To Comment