📜  php chech if string contains - PHP 代码示例

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

代码示例5
// returns true if $needle is a substring of $haystack
function contains($haystack, $needle){
    return strpos($haystack, $needle) !== false;
}