php 数组中在最后一个位置插入元素
$str=Array([0]=>111[1]=>222[2]=>33[3]=>44[4]=>55[5]=>666)想在数组中再手动添加一个元素在最后的位置效果是这样的:A...
$str=Array
(
[0] =>111
[1] => 222
[2] => 33
[3] => 44
[4] =>55
[5] => 666
)
想在数组中再手动添加一个元素在最后的位置
效果是这样的:
Array
(
[0] =>111
[1] => 222
[2] => 33
[3] => 44
[4] =>55
[5] => 666
[6] => 777
) 展开
(
[0] =>111
[1] => 222
[2] => 33
[3] => 44
[4] =>55
[5] => 666
)
想在数组中再手动添加一个元素在最后的位置
效果是这样的:
Array
(
[0] =>111
[1] => 222
[2] => 33
[3] => 44
[4] =>55
[5] => 666
[6] => 777
) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询