What will be the output of the following code?<?phpecho ord ("Hello World");?>0.5 Marks103209106104
Question
What will be the output of the following code?<?phpecho ord ("Hello World");?>0.5 Marks103209106104
Solution
The output of the given PHP code will be 72. The ord() function in PHP returns the ASCII value of the first character of a string. In this case, the string is "Hello World" and the first character is 'H'. The ASCII value of 'H' is 72.
Similar Questions
What will be the output of the following PHP code?< ?php$hello = "Hello World";$bye = "Bye";echo $hello;"$bye";?>
What will be the output of the following PHP code?1.0 MarksNo OutputAll of the above8 === 81
What will be the output of the following PHP code?1.0 Marks1$z815
What will be the output of the following PHP code?
What will be the output of the following PHP code?< ?phpecho $red ;?>0NothingTrueError
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.