php find part of string in array

143

php find part of string in array -

foreach($array as $item){
  if(strpos($item,"mysearchword")!== false){
    echo 'found';
  }
}

Comments

Submit
0 Comments