📌  相关文章
📜  检查数组是否有值 php 代码示例

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

代码示例4
$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;