$cars=array(array("品牌"=>"Volvo","库存"=>...库存"=>17,"销量"=>15));
举一反三
- $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("Volvo"=>10,"BMW"=>5,"SAAB"=>23);___________可访问"BMW"对应的元素
- $cars=array(array("Volvo",22,18),array("BMW",15,13),array("Saab",5,2),array("Land Rover",17,15)); A: 内外层都是索引数组 B: 内层是索引数组,外层是关联数组 C: 内层是关联数组,外层是索引数组 D: 内外层都是关联数组
- php[br][/br]$cars=array("Volvo","BMW","Toyota");[br][/br]echo "I like " . $cars[0] ;[br][/br]?>[br][/br](5.0) A: Volvo B: BMW C: Toyota