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

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 106
  • B 103
  • C 104
  • D 209
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.

Share This Question

Challenge a friend or share with your study group.