×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What will be the output of the following PHP code (14)?

55. What will be the output of the following PHP code?

<?php
echo ucwords("hi, there how are you?");
?>  
  1. Hi, there how are you?
  2. Hi, There How Are You?
  3. hi, there how are you?
  4. HI, THERE HOW ARE YOU?

Answer: B) Hi, There How Are You?

Explanation:

The ucwords() function is used to convert the first character of each word in a string to uppercase. Thus, the output will be "Hi, There How Are You?".

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.