PHP array function sequence array_pop() - delete the last element in the array

高洛峰
Release: 2023-03-04 13:32:01
Original
1492 people have browsed it

array_pop() definition and usage
array_pop() function deletes the last element in the array.

Syntax
array_pop(array) Parameter Description
array Required. Specifies the input array parameters.

Example

Copy after login

Output:

Array ( [0] => Dog [1] => Cat )

More php array functions Sequence array_pop() - Delete the last element in the array. For related articles, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!