Answers for "find substring in phph"

PHP
0

php find string in string

$pos = strpos("find the position of X in here", "X");
Posted by: Guest on March-16-2021
0

php find part of string in array

foreach($array as $item){
  if(strpos($item,"mysearchword")!== false){
    echo 'found';
  }
}
Posted by: Guest on May-05-2021

Browse Popular Code Answers by Language