Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

strpos failing to output FALSE!


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

#1 uniqueideaman


    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 60 posts

Posted 26 April 2017 - 03:08 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.
      echo strpos("Hello world!","s");

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download