PHP
须须_
这个作者很懒,什么都没留下…
展开
-
GuzzleHttp 请求/返回 xml(soap)
代码 $client = new \GuzzleHttp\Client(); // 请求xml数据 $xmlRequest = '<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.x原创 2021-07-23 14:08:04 · 1003 阅读 · 0 评论 -
PHP交叉合并数组
function crossMergeArray(array $arr) { $max = 0; foreach ($arr as &$item){ $item = array_values($item); $itemCount = count($item); if ($max < $itemCount){ $max = $itemCount; } } if ($max ==原创 2020-11-26 10:43:55 · 216 阅读 · 0 评论