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 7.4 / MariaDB 11.4 preg_replace trim str_replace var_dump preg_match array_shift array_pop print_r array_merge
last run:
2025-03-06 12:36:51
2
- PHP 8.4 / MariaDB 11.4 strlen substr printf array_pop
last run:
2025-03-13 03:56:07
1
- PHP 8.4 / MariaDB 11.4 strlen substr printf array_pop
last run:
2025-03-13 03:55:35
1
- PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
last run:
2025-03-13 03:42:07
1
- PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
last run:
2025-03-13 03:41:41
1
- PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
last run:
2025-03-13 03:41:02
1
- PHP 7.4 / MariaDB 11.4 strlen substr printf array_pop
last run:
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
last run:
2025-03-06 12:36:45
1
- PHP 8.2 / MySQL 8.0 Sakila (ReadOnly) array_pop
last run:
2024-10-17 15:39:03
1
- PHP 8.2 / PostgreSQL 10 Bookings (ReadOnly) preg_match var_dump array_pop
last run:
2024-06-17 09:08:51
1
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.2 / PostgreSQL 10 Bookings (ReadOnly) preg_match var_dump array_pop
added at:
2024-06-17 09:08:51
1