Skip to content

Instantly share code, notes, and snippets.

@QuestionDevelopment
Created August 23, 2013 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuestionDevelopment/6323475 to your computer and use it in GitHub Desktop.
Save QuestionDevelopment/6323475 to your computer and use it in GitHub Desktop.
$pos = strpos($haystack,$needle);
if($pos === false) {
// string needle NOT found in haystack
}
else {
// string needle found in haystack
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment