"> What will be the output of the following PHP code?<?phpecho

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    echo ord ("Ajit");
    ?>
    1. 61
    2. 62
    3. 63
    4. 64
    5. 65
Correct Option: E

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



Your comments will be displayed only after manual approval.