$cars=array(array("Volvo",22,18),array...and Rover",17,15));
举一反三
- $cars=array( array("Volvo",22,18), array("BMW",15,13), array("Saab",5,2), array("LandRover",17,15) );
- $cars=array(array("Volvo",22,18),array("BMW",15,13),array("Saab",5,2),array("Land Rover",17,15)); A: 内外层都是索引数组 B: 内层是索引数组,外层是关联数组 C: 内层是关联数组,外层是索引数组 D: 内外层都是关联数组
- $cars=array(array("品牌"=>"Volvo","库存"=>...库存"=>17,"销量"=>15));
- $cars=array("Volvo"=>10,"BMW"=>5,"SAAB"=>23);___________可访问"BMW"对应的元素
- 运行以下代码<?php$cars=array(DIOR,LV,update);arsort($cars);print_r($cars);?>结果是() A: Array ([2] => update [1] => LV [0] => DIOR ) B: Array ([0] => DIOR [1] => LV [2] => update ) C: Array ([0] => update [1] => LV [2] => DIOR ) D: Array ([2] => DIOR [1] => LV [0] => update )