Examveda
Examveda

What will be the output of the following PHP code?
<?php
    echo "chr(52)";
?>

A. 1

B. 2

C. 3

D. 4

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions