php 数组元素加法

<?php
//添加一个元素 $dirs[]
= '1location';
//再次添加一个元素 $dirs[]
= '2location';
//第三次添加一个元素 $dirs[]
= '3location';
//打印 print_r($dirs);
?>

输出

Array ( [0] => 1location [1] => 2location [2] => 3location )

原文地址:https://www.cnblogs.com/sea-stream/p/11280026.html