sea-stream

 

<?php
$a=array("red","green");
array_push($a,"blue","yellow");
print_r($a);
?>

输出

Array ( [0] => red [1] => green [2] => blue [3] => yellow )

 

 

参考:

https://www.w3school.com.cn/php/php_ref_array.asp

分类:

技术点:

相关文章:

  • 2021-09-25
  • 2021-11-13
  • 2021-10-09
  • 2021-11-05
  • 2021-11-22
  • 2021-10-26
猜你喜欢
  • 2021-11-15
  • 2021-11-13
  • 2021-11-23
  • 2021-12-27
  • 2021-12-15
  • 2021-11-23
  • 2021-11-15
相关资源
相似解决方案