时间:2021-07-01 10:21:17 帮助过:26人阅读
$url = "http://www.123456.com/Ajax.ashx?Action=AddOrder&OrderIDShow=1&id=10086&Amt=10&Mb=2&[email protected]";
$result = file_get_contents($url);
echo $result;
$str = "YES_5e286f3e";
$arr = explode('_',$str);
echo $arr[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;