摘要: function arrayRecursive(&$array, $function, $apply_to_keys_also = false){ static $recursive_counter = 0; if (++$recursive_counter > 1000) { die('possible deep recursion attack'); } foreach ($array as $key => $value) { if (is_array($value)) { arrayRecursive($array[$key], $function, 阅读全文
posted @ 2012-04-30 14:03 象牛 阅读(281) 评论(0) 推荐(0) 编辑