What will be the output of the following PHP code?
<?php
echo chr(52);
?>
4
Correct:
4
Explanation: The chr() function returns a character from the specified ASCII value. We can specify ASCII value in decimal, octal, or hex values. The Octal values are defined as a leading 0, while hex values are defined as a leading 0x. Since the ASCII value of 4 is 52, thus 4 was displayed.