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
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 / explode array_pop print_r floor microtime
last run:
2024-07-27 21:32:46
10
- PHP 8.0 / preg_match_all in_array array_pop
last run:
2021-05-08 14:32:11
9
- PHP 8.1 / shuffle array_pop
last run:
2023-08-30 13:11:46
7
- PHP 8.1 / count array_key_exists array_pop var_dump
last run:
2022-07-31 14:25:54
6
- PHP 8.1 / explode array_pop print_r
last run:
2024-07-27 19:09:00
4
- PHP 8.0 / array_reduce array_key_last array_pop print_r array_map
last run:
2022-01-10 17:33:32
4
- PHP 8.1 / array_values array_pop print_r
last run:
2024-02-12 14:31:25
3
- PHP 8.1 / array_values array_pop print_r
last run:
2024-02-12 14:31:18
3
- PHP 7.4 / array_pop in_array str_repeat array_reverse
last run:
2023-04-22 17:35:26
3
- PHP 7.4 / array_pop str_repeat array_reverse
last run:
2023-04-22 17:46:27
3
array_pop - New snippets
-
PHP 8.4 / MariaDB 11.4 strlen substr printf array_pop
added at:
2025-03-13 03:56:07
1
-
PHP 8.4 / MariaDB 11.4 strlen substr printf array_pop
added at:
2025-03-13 03:55:35
1
-
PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
added at:
2025-03-13 03:42:07
1
-
PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
added at:
2025-03-13 03:41:41
1
-
PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
added at:
2025-03-13 03:41:02
1
-
PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
added at:
2025-03-13 03:37:25
1
-
PHP 7.4 / MariaDB 11.4 preg_replace trim str_replace var_dump preg_match array_shift array_pop print_r array_merge
added at:
2025-03-06 12:36:45
1
-
PHP 7.4 / MariaDB 11.4 preg_replace trim str_replace var_dump preg_match array_shift array_pop print_r array_merge
added at:
2025-03-06 12:36:10
2
-
PHP 8.2 / MySQL 8.0 Sakila (ReadOnly) array_pop
added at:
2024-10-17 15:39:03
1
-
PHP 8.1 / explode array_pop print_r floor microtime
added at:
2024-07-27 21:32:40
10