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

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



Your comments will be displayed only after manual approval.