PHP 读取 XML中指定内容
答案:1 悬赏:60 手机版
解决时间 2021-03-20 13:45
- 提问者网友:蓝莓格格巫
- 2021-03-19 19:39
PHP 读取 XML中指定内容
最佳答案
- 五星知识达人网友:持酒劝斜阳
- 2021-03-19 20:23
$xml = "Success ok -43779 496370 ";
$ob = simplexml_load_string($xml);
echo "returnstatus is:".$ob->returnstatus;
echo "
";
echo "message is:".$ob->message;
echo "
";
echo "remainpoint is:".$ob->remainpoint;
echo "
";
echo "taskid is:".$ob->taskid;
//var_dump($ob);
//用simplexml_load_string()函数来解析
$ob = simplexml_load_string($xml);
echo "returnstatus is:".$ob->returnstatus;
echo "
";
echo "message is:".$ob->message;
echo "
";
echo "remainpoint is:".$ob->remainpoint;
echo "
";
echo "taskid is:".$ob->taskid;
//var_dump($ob);
//用simplexml_load_string()函数来解析
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯