php数组键(“ ” ,null,false, true)的问题

 $arr =[
    1=>'controller',
    2=>'destruct',
    ''=>'construct',     //索引  []
    null =>'swith',   //索引  []
    true=>'while',       //索引  1
    false=>'zero',       //索引  0


 ];
 print_r($arr);

 

posted on 2018-04-03 21:04  炊厨  阅读(244)  评论(0)    收藏  举报

导航