array_pop
array_pop — Pop the element off the end of array.Description
array_pop( array &$array ): mixedarray_pop() pops and returns the value of the last element of array, shortening the array by one element.
Note: This function will reset() the array pointer of the input array after use.
Parameters
array
The array to get the value from.
Return Values
Returns the value of the last element of array. If array is empty (or is not an array), null will be returned.More information about array_pop on official PHP documentation site
array_pop - Popular snippets
- PHP 8.1 / MySQL 5.7 explode array_pop print_r floor microtime
last run:
2024-07-27 21:32:46
10
- PHP 8.0 / MySQL 5.7 preg_match_all in_array array_pop
last run:
2021-05-08 14:32:11
9
- PHP 8.1 / MySQL 5.7 shuffle array_pop
last run:
2023-08-30 13:11:46
7
- PHP 8.1 / MySQL 5.7 count array_key_exists array_pop var_dump
last run:
2022-07-31 14:25:54
6
- PHP 8.1 / MySQL 5.7 explode array_pop print_r
last run:
2024-07-27 19:09:00
4
- PHP 8.0 / MySQL 5.7 array_reduce array_key_last array_pop print_r array_map
last run:
2022-01-10 17:33:32
4
- PHP 8.1 / MySQL 5.7 array_values array_pop print_r
last run:
2024-02-12 14:31:25
3
- PHP 8.1 / MySQL 5.7 array_values array_pop print_r
last run:
2024-02-12 14:31:18
3
- PHP 7.4 / MySQL 5.7 array_pop in_array str_repeat array_reverse
last run:
2023-04-22 17:35:26
3
- PHP 7.4 / MySQL 5.7 array_pop str_repeat array_reverse
last run:
2023-04-22 17:46:27
3
array_pop - New snippets
-
PHP 8.1 / MySQL 5.7 explode array_pop print_r floor microtime
added at:
2024-07-27 21:32:40
10
-
PHP 8.1 / MySQL 5.7 explode array_pop print_r
added at:
2024-07-27 19:09:40
2
-
PHP 8.1 / MySQL 5.7 explode array_pop print_r
added at:
2024-07-27 19:08:58
4
-
PHP 8.2.13 / MySQL 5.7 array_pop explode
added at:
2024-07-07 20:12:00
1
-
PHP 8.2.13 / MySQL 5.7 array_pop explode array_pop explode
added at:
2024-07-07 20:11:12
1
-
PHP 8.2.13 / PostgreSQL 10 Bookings (ReadOnly) preg_match var_dump array_pop
added at:
2024-06-17 09:08:51
1
-
PHP 8.1 / MySQL 5.7 strlen array_push array_pop print_r
added at:
2024-03-27 16:30:54
1
-
PHP 8.1 / MySQL 5.7 strlen array_push print_r array_pop count
added at:
2024-03-27 16:16:50
1
-
PHP 8.1 / MySQL 5.7 strlen print_r array_push array_pop count
added at:
2024-03-27 16:16:42
1