Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

strpos failing to output FALSE!

strpos

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 uniqueideaman

uniqueideaman

    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 52 posts

Posted 26 April 2017 - 03:11 PM

It is said on the following link:
**Using the strpos() function**
**The strpos() function is used to search for a string or character within a string.**
 
**If a match is found in the string, this function will return the position of the first match. If no match is found, it will return FALSE.**
 
 
Isn't the following supposed to output to screen "FALSE" ? I do not see this happening.
 
   <?php
      echo strpos("Hello world!","s");
    ?>