💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 简单demo ``` $sweet = array('a' => 'apple', 'b' => 'banana'); $fruits = array('sweet' => $sweet, 'sour' => 'lemon'); function test_print(&$item, $key) { $item = "$key holds $item\n"; } array_walk_recursive($fruits, 'test_print'); var_export($fruits); /* [ 'sweet' => [ 'a' => 'a holds apple ', 'b' => 'b holds banana ', ], 'sour' => 'sour holds lemon ', ]; */ ```