Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #string #array
ADD COMMENT
Topic
Name
3+3 =