array_walk_recursive()期望参数1为数组 [英] array_walk_recursive() expects parameter 1 to be array
本文介绍了array_walk_recursive()期望参数1为数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我得到了这个错误:我没有得到我做错的地方...
错误是:
Dear All,
I am getting this error: I am not getting where I am doing mistake...
Error is:
Warning: array_walk_recursive() expects parameter 1 to be array, boolean given in C:\wamp\www\lib\t1.php on line
我的PHP代码是:
my Php code is:
<?php
require_once '../lib/nusoap.php';
$wsdl = "http://www.tempsite.com/abcservice/abc.asmx?wsdl";
$namespace = "http://www.tempsite.com/abcservice/";
$s = new nusoap_client($wsdl,true);
$param = array('date' => '21-Feb-2012', 'type' => 'DATE');
$var = $s->call('GetDataFromServices', array('parameters' => $param['date'],$param['type']));
print_r($var);
//print_r(array_values($var));
function test_print($item, $key)
{
echo "$key holds $item\n";
}
array_walk_recursive($var, 'test_print');
echo "Hi";
//print_r(array_values($new_array));
?>
推荐答案
wsdl = http://www.tempsite.com/abcservice/abc.asmx?wsdl";
wsdl = "http://www.tempsite.com/abcservice/abc.asmx?wsdl";
命名空间 = " ;
namespace = "http://www.tempsite.com/abcservice/";
s = 新 nusoap_client(
s = new nusoap_client(
这篇关于array_walk_recursive()期望参数1为数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文