用json_encode()函数对数组进行JSON编码。<?php$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);echojson_encode($arr);?>以上例程会输出:.
確定! 回上一頁