×

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 (9)?

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

<?php
echo strpos("Hello, Includehelp!", "Includehelp!");
?>  
  1. 6
  2. 7
  3. 8
  4. -1

Answer: B) 7

Explanation:

The strops() function is used to search for a text within a string and it returns the character position of the first match.

Comments and Discussions!

Load comments ↻






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