Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 14
    Could you please tell me why in the world you would use a function like this, when strpos is a perfectly viable solution?...
    – sg3s
    Commented Sep 19, 2013 at 14:05
  • 3
    @sg3s: you are totally right, however, strpos also based on something like that, also, I didn't posted it for rep just for sharing a bit of knowledge
    – Jason OOO
    Commented Sep 19, 2013 at 19:33
  • last var_dump is false
    – Sunny
    Commented May 17, 2015 at 21:29
  • 1
    @Sunny: it was typo: var_dump(is_str_contain("mystringss", "strings")); //true
    – Jason OOO
    Commented May 18, 2015 at 10:44