Single Choice
Not Set
QWhat will be the output of the following PHP code?
< ?php
echo ord ("hi");
?>
ID: #2425
Functions in PHP MCQ
542 views
Question Info
#2425Q ID
Not SetDifficulty
Functions in PHP MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
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.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic