background image

{
echo"参数不是 2 维数组";
returnfalse;
}
$TestParamList=sysCombineArray($ParamList);
echo"开始测试函数".$FunctionName."<br/>";
foreach($TestParamListas$Key=>$TestParamInfo)
{
echo"开始测试第".$Key."组参数:<br/>";
foreach($TestParamInfoas$ParamKey=>$Param)
{
${"Param".$ParamKey}=$Param;
$TempParamList[]="$Param".$ParamKey;
if(is_array($Param))
{
echo"参数".$ParamKey.",类型为数组:";
echo"<pre>";
print_r($Param);
}
elseif(is_bool($Param))
{
echo"参数".$ParamKey.",类型为 boll:";
if($Param)
{
echo"true";
}
else
{
echo"false";
}
}
else
{
echo"参数".$ParamKey.",类型为字符串或数字:";
echo$Param;
}
echo"<br/>";
}
$Params=join(",",$TempParamList);
unset($TempParamList);
eval("$TestReturnResult=".$FunctionName."(".$Params.");");
if(is_array($TestReturnResult))
{
echo"函数返回数组:<pre>";