mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修正arr2xml转换问题
This commit is contained in:
parent
0bbdf10393
commit
75b19a76a4
@ -122,6 +122,7 @@ class Tools
|
||||
private static function _arr2xml($data, $content = '')
|
||||
{
|
||||
foreach ($data as $key => $val) {
|
||||
is_numeric($key) && $key = 'item';
|
||||
$content .= "<{$key}>";
|
||||
if (is_array($val) || is_object($val)) {
|
||||
$content .= self::_arr2xml($val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user