📌  相关文章
📜  在 php 代码示例中将项目添加到数组

📅  最后修改于: 2022-03-11 14:53:59.935000             🧑  作者: Mango

代码示例3
PHP function array_push(array &$array, ...$values) int
------------------------------------------------------
Push elements onto the end of array. Since 7.3.0 this function can be called with only one parameter. 
For earlier versions at least two parameters are required.
  
Parameters:
array--$array--The input array.
mixed--...$values--[optional] The pushed variables.
  
Returns: the number of elements in the array.