?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
echo ord ("hi");
?>
<?php
echo ord ("hi");
?>
Answer & Solution
Correct Answer:
Option
C
The ord() function returns the ASCII value of the first character of a string. The ASCII value of h is 104, thus 104 was displayed.
Join the Discussion
Login to post a comment or share your explanation.
Login