PHP调用出json后出来的数目字 想隐藏掉 50份求高手帮忙下

PHP调用出json后出来的数字 想隐藏掉 50份求高手帮忙下!
本帖最后由 cnshoufu 于 2014-10-24 23:36:52 编辑
qianming.php 原文 
引用
<?php   
$code = $_GET['code'];//前端传来的code值  
$appid = "10";  
$appsecret = "张小花";  

$url = "http://123456.com/actForm.ashx?action=addorder&gameid=65&num=$appid&realname=520520&UserEmail=xiaomeng@qq.com&SearchPass=$appsecret";  
$result = https_request($url);  
$json = json_decode($result, true);
$id = explode('_',$json['msg']);
echo $id[1];
function https_request($url,$data = null){  
    $curl = curl_init();  
    curl_setopt($curl, CURLOPT_URL, $url);  
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);  
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);  
    if (!empty($data)){  
        curl_setopt($curl, CURLOPT_POST, 1);  
        curl_setopt($curl, CURLOPT_POSTFIELDS, $data);  
    }  
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);  
    $output = curl_exec($curl);  
    curl_close($curl);  
    return $output;  

?>  
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线提交</title>
</head>
<body><div>正在跳转页面请稍后... ...</div>
</body>
</html>
<script>location.href='http://123456.com/dx.php?orderid=<?php echo $id[1]; ?>'</script>

打开网页显示为
引用
14102423250754238  

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线提交</title>
</head>

<body><div>正在跳转页面请稍后... ...</div>
</body>
</html>
<script>location.href='http://123456.com/dx.php?orderid=14102423250754238'</script>

想要把 <!DOCTYPE html>前面的 14102423250754238 去掉 直接在 下面 orderid=14102423250754238 这里显示出来  需要怎么做!求高手 帮我 
------解决思路----------------------
...
$id = explode('_',$json['msg']);
//echo $id[1];
function https_request($url,$data = null){  
...
------解决思路----------------------
昨天用了我代码,你也不测试,echo也不注释,真够懒的
------解决思路----------------------
引用:
昨天用了我代码,你也不测试,echo也不注释,真够懒的

昨天的帖子問題解決了,樓主居然還不滿意結帖。對於給予幫助的人樓主就是這樣對待的。
新手就已經這樣了,還能期望別人幫助,我想說的就兩字,“呵呵”