解决方案 »

  1.   

    你去到结果后如果你只是想去掉YES_那你完全可以采用正则或者是切割按照_来切割取后面的就好了。
      

  2.   


    $str = "YES_5e286f3e";
    $arr = explode('_',$str);
    echo $arr[1];
      

  3.   

    $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];
      

  4.   


    $result = ltrim('YES_5e286f3e','YES_');
    echo $result;
      

  5.   

    這樣就可以了。$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;
      

  6.   

    把'YES_'替换为空即可。
    参考函数:str_replace();