php怎样将下面返回的数组的值存入一个变量???
程序代码:
<?php $sign=md5("ffwe"); $client = new SoapClient("http://gw.shop.); $params = array( 'venderID' => '10562', 'tradeNo' => '102', 'skuId' => '678912345', 'subtractNum' => 1, 'venderSign' => $sign, ); $p = $client->__Call('stockUpdate',array('parameters'=>$params)); print_r($p); ?>运行的结果:
stdClass Object ( [return] => stdClass Object ( [chineseErrCode] => 签名错误 [englishErrCode] => Isv.missing_sign_error [numberCode] => 1122 [success] => ) )
应该怎样将返回得到的 [chineseErrCode] => 签名错误 中的“签名错误”存入一个变量???
[ 本帖最后由 赤那 于 2011-4-9 17:08 编辑 ]