/**
* PHP检查字符串中是否包含某些字符串
* @param string $haystack
* @param string|array $needles 包含字符串
* @return bool
*/
function string_end($haystack, $needles){
foreach ((array) $needles as $needle) {
if ('' != $needle && mb_strpos($haystack, $needle) !== false) {
return true;
}
}
return false;
}