移除不需要的全局函数

This commit is contained in:
Yu Sun
2022-07-16 14:15:36 +08:00
parent 460e5fd916
commit e68a2f433e

View File

@@ -1,11 +1 @@
<?php
function find_key_value($array, $key, $val) {
foreach ($array as $item)
{
if (is_array($item) && find_key_value($item, $key, $val))
return true;
if (isset($item[$key]) && $item[$key] == $val)
return true;
}
return false;
}