Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    echo chr(51);
    ?>
    1. 51
    2. 15
    3. 3
    4. Error
    5. None of these
Correct Option: C

The chr() function returns a character from the specified ASCII value. Since the ASCII value of 3 is 51, thus 3 was displayed.



Your comments will be displayed only after manual approval.