PHP 远程调用问题!望高手帮忙教下怎么做! phpurlemailjson 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你去到结果后如果你只是想去掉YES_那你完全可以采用正则或者是切割按照_来切割取后面的就好了。 $str = "YES_5e286f3e";$arr = explode('_',$str);echo $arr[1]; $url = "http://www.123456.com/Ajax.ashx?Action=AddOrder&OrderIDShow=1&id=10086&Amt=10&Mb=2&[email protected]"; $result =explode('_',file_get_contents($url));echo $result[1]; $result = ltrim('YES_5e286f3e','YES_');echo $result; 這樣就可以了。$url = "http://www.123456.com/Ajax.ashx?Action=AddOrder&OrderIDShow=1&id=10086&Amt=10&Mb=2&[email protected]"; $result = file_get_contents($url); $result = str_replace('YES_', '', $result); // 把YES_替換為空echo $result; 把'YES_'替换为空即可。参考函数:str_replace(); 伪静态疑问!? 问一个关于table的问题,大家帮忙啊 php 连接access数据库遍历的问题 高分求助关于PHP生成圆角图片的问题 像go2map这种网站的后台技术上容易实现吗? 请问一下各位在linux 下用什么开工具啊?vi? php的弱智问题 点击列头进行排序(表格中的数据为动态数据) PHP命名空间问题 ajax子页面,提交form表单问题 wdcp集成环境怎么使用openssl连接工商银行网银接口,签名 linux服务器安装php问题
$str = "YES_5e286f3e";
$arr = explode('_',$str);
echo $arr[1];
$result =explode('_',file_get_contents($url));
echo $result[1];
$result = ltrim('YES_5e286f3e','YES_');
echo $result;
$result = file_get_contents($url);
$result = str_replace('YES_', '', $result); // 把YES_替換為空
echo $result;
参考函数:str_replace();