What will be the output of the following PHP code?
<?php
echo "chr(52)";
?>
<?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.Related Questions on Functions
Which one of the following is the right way of defining a function in PHP?
A. function { function body }
B. data type functionName(parameters) { function body }
C. functionName(parameters) { function body }
D. function fumctionName(parameters) { function body }
A. Call By Value
B. Call By Reference
C. Default Argument Value
D. Type Hinting
Join The Discussion