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

Posted 随笔记录

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php数组键(“ ” ,null,false, true)的问题相关的知识,希望对你有一定的参考价值。

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


 ];
 print_r($arr);

 

以上是关于php数组键(“ ” ,null,false, true)的问题的主要内容,如果未能解决你的问题,请参考以下文章