<?php
//用json把数组转换为字符串格式
$arr=['xiong'=>99,'yao'=>68,'dian'=>89];
//转换成字符串格式
echo json_encode($arr);
?>