📜  if value conatins in word check in php Code Example

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

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