📌  相关文章
📜  php 检查某些字符串是否包含来自数组 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:44.555000             🧑  作者: Mango

代码示例3
$string = 'my domain name is website3.com';
foreach ($owned_urls as $url) {
    //if (strstr($string, $url)) { // mine version
    if (strpos($string, $url) !== FALSE) { // Yoshi version
        echo "Match found"; 
        return true;
    }
}
echo "Not found!";
return false;