Answers for "php find string in array of strings"

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 check if some string contains from array

$array = ["they has mystring in it", "some", "other", "elements"];
if (stripos(json_encode($array),'mystring') !== false) {
echo "found mystring";
}
Posted by: Guest on October-04-2021

Code answers related to "php find string in array of strings"

Browse Popular Code Answers by Language