"27","11a"=>"29","12a"=>"37","Bill"=>"35","Steve"=>"37","Peter"=>"43");
echo '排序前:
';
foreach($age as $x=>$x_value)
{
echo "Key=" . $x . ", Value=" . $x_value;
echo "
";
}
arsort($age);
echo '
排序后:
';
foreach($age as $x=>$x_value)
{
echo "Key=" . $x . ", Value=" . $x_value;
echo "
";
}
echo '
PHP 基础教程 - 简单教程(www.twle.cn)
';