移除不需要的全局函数
This commit is contained in:
@@ -1,11 +1 @@
|
|||||||
<?php
|
<?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;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user