+ // When searching for the phrase, check if it's in the haystack...
+ if ( $searchExactPhrase && strpos($haystack, $search) !== false) {
+ break;
+ }
+ else {
+ // Iterate over keywords, if keyword is not found,
+ // no need to check for the others. We want all or nothing.
+ foreach($explodedSearch as $keyword) {
+ if(strpos($haystack, $keyword) === false) {
+ $found = false;
+ break;
+ }
+ }
+ }
+
+ // One of the fields of the link matches, no need to check the other.