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

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

Jun 13, 2016 pm 12:08 PM
curl gt html lt nbsp

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

本帖最后由 cnshoufu 于 2014-10-24 23:36:52 编辑 qianming.php 原文 
引用
$code = $_GET['code'];//前端传来的code值  
$appid = "10";  
$appsecret = "张小花";  

$url = "http://123456.com/actForm.ashx?action=addorder&gameid=65&num=$appid&realname=520520&[email protected]&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;  

?>  
nbsp;html>



在线提交

正在跳转页面请稍后... ...



<script>location.href='http://123456.com/dx.php?orderid=<?php echo $id[1]; ?>'</script>

打开网页显示为
引用
14102423250754238  

nbsp;html>



在线提交


正在跳转页面请稍后... ...



<script>location.href='http://123456.com/dx.php?orderid=14102423250754238'</script>

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

昨天的帖子問題解決了,樓主居然還不滿意結帖。對於給予幫助的人樓主就是這樣對待的。
新手就已經這樣了,還能期望別人幫助,我想說的就兩字,“呵呵”
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles