Skip to content

Instantly share code, notes, and snippets.

@versluis
Created March 19, 2019 15:19
Show Gist options
  • Save versluis/fa5d47283804efca3c474ac487078eb0 to your computer and use it in GitHub Desktop.
Save versluis/fa5d47283804efca3c474ac487078eb0 to your computer and use it in GitHub Desktop.
helper function to test if a string is contained in another string
function isThisInThat ($needle, $haystack) {
return strpos($haystack, $needle) !==false;
}
@versluis
Copy link
Author

versluis commented Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment