具体如下:
json.html 代码:
PHP Json传输数据 姓名: 性别: 年龄:
json_encode.php 代码
$name,'sex'=>$sex,'age'=>$age); $json = new JSON; $json_result = $json->encode($json_arg); echo $json_result; ?>
上一篇:使用Paypal怎么实现一个循环扣款功能
下一篇:怎么在php中对多维数组进行排序