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.