Home »
MCQs »
PHP MCQs
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!");
?>
- 6
- 7
- 8
- -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.