Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if string contains a value in array

$count = 0;
str_replace($owned_urls, '', $string, $count);
// if replace is successful means the array value is present(Match Found).
if ($count > 0) {
  echo "One of Array value is present in the string.";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #array
ADD COMMENT
Topic
Name
7+7 =