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 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
- 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
array_pop - New snippets
-
PHP 8.1 / MySQL 5.7 array_values array_pop print_r
added at:
2024-02-12 14:31:33
1
-
PHP 8.1 / MySQL 5.7 array_values array_pop print_r
added at:
2024-02-12 14:31:23
3
-
PHP 8.1 / MySQL 5.7 array_values array_pop print_r
added at:
2024-02-12 14:31:16
3
-
PHP 8.1 / MySQL 5.7 array_values array_pop print_r
added at:
2024-02-12 14:31:07
1
-
PHP 8.1 / MySQL 5.7 end count array_pop array_merge print_r
added at:
2024-02-04 17:55:29
1
-
PHP 8.1 / MySQL 5.7 end count array_pop array_merge print_r
added at:
2024-02-04 17:54:22
1
-
PHP 8.1 / MySQL 5.7 array_pop array_push var_dump
added at:
2023-12-27 09:04:19
1
-
PHP 8.1 / MySQL 5.7 array_pop var_dump
added at:
2023-12-27 09:03:56
1
-
PHP 8.1 / MySQL 5.7 end array_pop var_dump
added at:
2023-12-27 09:03:51
1
-
PHP 8.1 / MySQL 5.7 explode trim strlen array_pop
added at:
2023-12-27 08:43:59
1