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.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.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 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
- PHP 8.1 / MySQL 5.7 array_pop var_dump
last run:
2022-08-04 19:08:40
3
- PHP 8.1 / MySQL 5.7 count array_key_exists array_pop var_dump
last run:
2022-07-31 14:15:31
3
- PHP 8.0 / MySQL 5.7 array_reduce array_key_last array_pop print_r
last run:
2022-01-10 17:20:40
3
- PHP 8.0 / MySQL 5.7 preg_match array_pop
last run:
2022-01-16 17:18:06
3
array_pop - New snippets
-
PHP 8.1 / MySQL 5.7 array_pop strtok substr strlen strip_tags
added at:
2023-09-05 20:11:12
1
-
PHP 8.1 / MySQL 5.7 array_pop strtok substr strlen strip_tags
added at:
2023-09-05 20:10:15
2
-
PHP 8.1 / MySQL 5.7 array_pop strtok substr strlen strip_tags
added at:
2023-09-05 20:09:24
1
-
PHP 8.1 / MySQL 5.7 array_pop strtok substr strlen strip_tags
added at:
2023-09-05 20:09:10
1
-
PHP 8.1 / MySQL 5.7 shuffle array_pop shuffle array_pop
added at:
2023-08-30 13:11:42
7
-
PHP 8.2.3 / MySQL 5.7 str_replace array_filter explode array_pop implode var_dump
added at:
2023-05-22 06:31:52
1
-
PHP 8.2.3 / MySQL 5.7 str_replace array_filter explode array_pop implode var_dump realpath
added at:
2023-05-22 06:29:48
1
-
PHP 8.2.3 / MySQL 5.7 str_replace array_filter explode array_pop implode var_dump realpath
added at:
2023-05-22 06:15:34
1
-
PHP 8.1 / MySQL 5.7 explode array_shift array_pop end
added at:
2023-04-24 17:39:31
1