執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!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}