主页
PHP
PHP 和 JSON
tryphp_json_encode1
运行 ❯
×
更改方向
保存代码
更改主题
<!DOCTYPE html> <html> <body> <?php $age = array("Peter"=>35, "Ben"=>37, "Joe"=>43); echo json_encode($age); ?> </body> </html>
{"Peter":35,"Ben":37,"Joe":43}