node configure增改接近完成,删除后端还没做
This commit is contained in:
11
app/Utils.php
Normal file
11
app/Utils.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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