×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Matt Knowlton
Added: Apr 14, 2015 2:51 PM
Views: 9
Tags: no tags
  1. if (strpos($string, 'substring') !== false) {
  2.     //substring found in string
  3. } else {
  4.     //substring not found
  5. }