search
Homephp教程php手册php数组函数序列之array_pop()

php数组函数序列之array_pop()

Jun 13, 2016 pm 12:03 PM
arrayphppopelementfunctiondeletesequencearrayat lastusage

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
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment