Home > php教程 > php手册 > php数组函数序列之array_pop()

php数组函数序列之array_pop()

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:03:56
Original
1007 people have browsed it

array_pop()定义和用法
array_pop() 函数删除数组中的最后一个元素。

语法
array_pop(array)参数 描述
array 必需。规定输入的数组参数。

例子

复制代码 代码如下:


$a=array("Dog","Cat","Horse");
array_pop($a);
print_r($a);
?>


输出:

Array ( [0] => Dog [1] => Cat )
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template