Blogger Information
Blog 16
fans 0
comment 2
visits 16221
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
数组创建索引关联更新删除取出
长沙php专家
Original
717 people have browsed it

//这节课重点学习了数组的创建

$Language = [english,chinese,franch,italia]; //创建索引数组

$Chinese = ['skin'=>yellow,'people'=>14,'language'=>chinese]; //索引数组,数字14后面不能空格 不能加英文

echo '<pre>';

//echo $Chinese['skin'];//单个输出



unset($Chinese); //销毁

print_r ($Chinese);

echo is_null($Chinese) ? 2 : 3; //返回 true 


echo '<pre>';

print_r(array_splice($Language,1,2)); // 取出第二 第三


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post