📅  最后修改于: 2022-03-11 14:53:40.306000             🧑  作者: Mango
// returns true if $needle is a substring of $haystack
function contains($haystack, $needle){
return strpos($haystack, $needle) !== false;
}