pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <legend id='KljD8'><style id='KljD8'><dir id='KljD8'><q id='KljD8'></q></dir></style></legend>

    1. <tfoot id='KljD8'></tfoot>
      • <bdo id='KljD8'></bdo><ul id='KljD8'></ul>

      1. <small id='KljD8'></small><noframes id='KljD8'>

        <i id='KljD8'><tr id='KljD8'><dt id='KljD8'><q id='KljD8'><span id='KljD8'><b id='KljD8'><form id='KljD8'><ins id='KljD8'></ins><ul id='KljD8'></ul><sub id='KljD8'></sub></form><legend id='KljD8'></legend><bdo id='KljD8'><pre id='KljD8'><center id='KljD8'></center></pre></bdo></b><th id='KljD8'></th></span></q></dt></tr></i><div class="tphkrqt" id='KljD8'><tfoot id='KljD8'></tfoot><dl id='KljD8'><fieldset id='KljD8'></fieldset></dl></div>

        將數(shù)組傳遞給 PHP 中的 SOAP 函數(shù)

        Passing array to SOAP function in PHP(將數(shù)組傳遞給 PHP 中的 SOAP 函數(shù))
        <legend id='puiLZ'><style id='puiLZ'><dir id='puiLZ'><q id='puiLZ'></q></dir></style></legend>
        <i id='puiLZ'><tr id='puiLZ'><dt id='puiLZ'><q id='puiLZ'><span id='puiLZ'><b id='puiLZ'><form id='puiLZ'><ins id='puiLZ'></ins><ul id='puiLZ'></ul><sub id='puiLZ'></sub></form><legend id='puiLZ'></legend><bdo id='puiLZ'><pre id='puiLZ'><center id='puiLZ'></center></pre></bdo></b><th id='puiLZ'></th></span></q></dt></tr></i><div class="rf5dbtn" id='puiLZ'><tfoot id='puiLZ'></tfoot><dl id='puiLZ'><fieldset id='puiLZ'></fieldset></dl></div>
          1. <tfoot id='puiLZ'></tfoot>
              <tbody id='puiLZ'></tbody>
              <bdo id='puiLZ'></bdo><ul id='puiLZ'></ul>

                <small id='puiLZ'></small><noframes id='puiLZ'>

                  本文介紹了將數(shù)組傳遞給 PHP 中的 SOAP 函數(shù)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  您好,

                  我似乎找不到以數(shù)組為參數(shù)創(chuàng)建函數(shù)請求的方法.例如,我如何使用 PHP SoapClient 發(fā)出這種請求:

                  I can't seem to find a way to create a function request with array as an argument. For example, how do I make this kind of request using PHP SoapClient:

                  <GetResultList>
                    <GetResultListRequest>
                      <Filters>
                        <Filter>
                          <Name>string</Name>
                          <Value>string</Value>
                        </Filter>
                        <Filter>
                          <Name>string</Name>
                          <Value>string</Value>
                        </Filter>
                      </Filters>
                    </GetResultListRequest>
                  </GetResultList>
                  

                  是否可以在不創(chuàng)建任何額外類的情況下調(diào)用此函數(shù)(僅使用數(shù)組)?如果不是,最簡潔的調(diào)用方式是什么?

                  Is this possible to call this function without creating any extra classes (using arrays only)? If no, what is the most compact way of calling it?

                  推薦答案

                  您可以使用這個 -v 函數(shù)將數(shù)組轉(zhuǎn)換為對象樹:

                  You can use this -v function to convert a array to a object tree:

                  function array_to_objecttree($array) {
                    if (is_numeric(key($array))) { // Because Filters->Filter should be an array
                      foreach ($array as $key => $value) {
                        $array[$key] = array_to_objecttree($value);
                      }
                      return $array;
                    }
                    $Object = new stdClass;
                    foreach ($array as $key => $value) {
                      if (is_array($value)) {
                        $Object->$key = array_to_objecttree($value);
                      }  else {
                        $Object->$key = $value;
                      }
                    }
                    return $Object;
                  }
                  

                  像這樣:

                  $data = array(
                    'GetResultListRequest' => array(
                      'Filters' => array(
                        'Filter' => array(
                          array('Name' => 'string', 'Value' => 'string'), // Has a numeric key
                          array('Name' => 'string', 'Value' => 'string'),
                        )
                      )
                    )
                  );
                  $Request = array_to_objecttree($data);
                  

                  這篇關于將數(shù)組傳遞給 PHP 中的 SOAP 函數(shù)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機)
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實現(xiàn))
                  Sending a byte array from PHP to WCF(將字節(jié)數(shù)組從 PHP 發(fā)送到 WCF)
                    <bdo id='ScxdO'></bdo><ul id='ScxdO'></ul>

                        <small id='ScxdO'></small><noframes id='ScxdO'>

                        <tfoot id='ScxdO'></tfoot><legend id='ScxdO'><style id='ScxdO'><dir id='ScxdO'><q id='ScxdO'></q></dir></style></legend>

                            <tbody id='ScxdO'></tbody>

                        1. <i id='ScxdO'><tr id='ScxdO'><dt id='ScxdO'><q id='ScxdO'><span id='ScxdO'><b id='ScxdO'><form id='ScxdO'><ins id='ScxdO'></ins><ul id='ScxdO'></ul><sub id='ScxdO'></sub></form><legend id='ScxdO'></legend><bdo id='ScxdO'><pre id='ScxdO'><center id='ScxdO'></center></pre></bdo></b><th id='ScxdO'></th></span></q></dt></tr></i><div class="5n7bbxl" id='ScxdO'><tfoot id='ScxdO'></tfoot><dl id='ScxdO'><fieldset id='ScxdO'></fieldset></dl></div>

                            主站蜘蛛池模板: 沈飞防静电地板__机房地板-深圳市沈飞防静电设备有限公司 | 珠海冷却塔降噪维修_冷却塔改造报价_凉水塔风机维修厂家- 广东康明节能空调有限公司 | 球磨机,节能球磨机价格,水泥球磨机厂家,粉煤灰球磨机-吉宏机械制造有限公司 | 深圳离婚律师咨询「在线免费」华荣深圳婚姻律师事务所专办离婚纠纷案件 | 我车网|我关心的汽车资讯_汽车图片_汽车生活! | RV减速机-蜗轮蜗杆减速机-洗车机减速机-减速机厂家-艾思捷 | 楼承板设备-楼承板成型机-免浇筑楼承板机器厂家-捡来 | 大连海岛旅游网>>大连旅游,大连海岛游,旅游景点攻略,海岛旅游官网 | 厂厂乐-汇聚海量采购信息的B2B微营销平台-厂厂乐官网 | 寮步纸箱厂_东莞纸箱厂 _东莞纸箱加工厂-东莞市寮步恒辉纸制品厂 | 油冷式_微型_TDY电动滚筒_外装_外置式电动滚筒厂家-淄博秉泓机械有限公司 | 成都网站建设制作_高端网站设计公司「做网站送优化推广」 | 神马影院-实时更新秒播| 模具钢_高速钢_不锈钢-万利钢金属材料 | 网优资讯-为循环资源、大宗商品、工业服务提供资讯与行情分析的数据服务平台 | 无锡门窗-系统门窗-阳光房-封阳台-断桥铝门窗厂[窗致美] | 远程会诊系统-手术示教系统【林之硕】医院远程医疗平台 | 新疆乌鲁木齐网站建设-乌鲁木齐网站制作设计-新疆远璨网络 | 一体式钢筋扫描仪-楼板测厚仪-裂缝检测仪-泰仕特(北京) | 交联度测试仪-湿漏电流测试仪-双85恒温恒湿试验箱-常州市科迈实验仪器有限公司 | 青岛侦探_青岛侦探事务所_青岛劝退小三_青岛婚外情取证-青岛王军侦探事务所 | 亮点云建站-网站建设制作平台| 有声小说,听书,听小说资源库-听世界网 | 上海盐水喷雾试验机_两厢式冷热冲击试验箱-巨怡环试 | 外贸网站建设-外贸网站设计制作开发公司-外贸独立站建设【企术】 | 起好名字_取个好名字_好名网免费取好名在线打分 | 飞象网 - 通信人每天必上的网站| 凝胶成像系统(wb成像系统)百科-上海嘉鹏 | 篮球地板厂家_舞台木地板品牌_体育运动地板厂家_凯洁地板 | EDLC超级法拉电容器_LIC锂离子超级电容_超级电容模组_软包单体电容电池_轴向薄膜电力电容器_深圳佳名兴电容有限公司_JMX专注中高端品牌电容生产厂家 | 工业雾炮机_超细雾炮_远程抑尘射雾器-世纪润德环保设备 | 软文发布-新闻发布推广平台-代写文章-网络广告营销-自助发稿公司媒介星 | 希望影视-高清影视vip热播电影电视剧免费在线抢先看 | 沈阳网站建设_沈阳网站制作_沈阳网页设计-做网站就找示剑新零售 沈阳缠绕膜价格_沈阳拉伸膜厂家_沈阳缠绕膜厂家直销 | 掺铥光纤放大器-C/L波段光纤放大器-小信号光纤放大器-合肥脉锐光电技术有限公司 | 耐热钢-耐磨钢-山东聚金合金钢铸造有限公司 | 电液推杆生产厂家|电动推杆|液压推杆-扬州唯升机械有限公司 | 灰板纸、灰底白、硬纸板等纸品生产商-金泊纸业 | 郑州水质检测中心_井水检测_河南废气检测_河南中环嘉创检测 | 新材料分散-高速均质搅拌机-超声波分散混合-上海化烁智能设备有限公司 | 超细粉碎机|超微气流磨|气流分级机|粉体改性设备|超微粉碎设备-山东埃尔派粉碎机厂家 |