例:
<?php
$six = array(
'eight' => "72",
'nine'=>"06",
'ten' => "00"
);
$arraylyj=array(
'one'=>"0004",
'two'=>"0004",
'three'=>"01",
'four'=>"00",
'five'=>"$six")
$msg = json_encode($arraylyj);
echo("-----$msg------\n");
?>
注:
数组定义,以及数组成员指向数组。如果数组成员赋值直接=加数值。