1. 程式人生 > >PHP 返回JSON

PHP 返回JSON

type 返回json spa 返回 cati bsp HP name app

aret.php

<?php
header
("content-type:application/json"); $json=‘{"name":"pual","age":15,"class":100}‘; echo $json;
?>

PHP 返回JSON