如何在PHP中使用simplexml_load_string? [英] How to use simplexml_load_string in PHP?

查看:195
本文介绍了如何在PHP中使用simplexml_load_string?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误如



simplexml_load_string():实体:第1行:解析器错误:开始预期标记,'<'未找到

错误:值不能为空。参数名称:s



我的尝试:



$ iResponse = $ client-> GetInstalmentDetails(array(PID=> $ proId));

$ GetData = simplexml_load_string($ iResponse-> GetResult);

i am getting error like

simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
Error: Value cannot be null. Parameter name: s

What I have tried:

$iResponse = $client->GetInstalmentDetails(array("PID" => $proId));
$GetData = simplexml_load_string($iResponse->GetResult);

推荐答案

iResponse =
iResponse =


client-> GetInstalmentDetails(array(PID=>
client->GetInstalmentDetails(array("PID" =>


proId)) ;
proId));


这篇关于如何在PHP中使用simplexml_load_string?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆