array_push
array_push — Push one or more elements onto the end of array.Description
array_push( array &$array,array_push() treats array as a stack, and pushes the passed variables onto the end of array. The length of array increases by the number of variables pushed.
mixed ...$values ): int
Parameters
array
The input array.
values
The values to push onto the end of the array.
Return Values
Returns the new number of elements in the array.More information about array_push on official PHP documentation site
array_push - Popular snippets
- PHP 7.4 / MySQL 8.0 array_push print_r
last run:
2023-12-12 14:03:15
188
- PHP 8.1 / MySQL 5.7 array_push print_r array_push print_r
last run:
2024-12-04 13:29:33
153
- PHP 7.4 / MySQL 8.0 mysqli_query mysqli_fetch_assoc explode count array_push trim array_count_values array_keys print_r
last run:
2023-06-06 16:46:02
15
- PHP 7.4 / MySQL 8.0 array_push print_r
last run:
2023-11-12 19:01:01
12
- PHP 8.0 / MariaDB 10 printf phpversion is_array array_push var_export
last run:
2023-07-13 14:51:43
11
- PHP 8.2.13 / MySQL 8.0 array_push print_r
last run:
2023-11-11 08:27:33
10
- PHP 8.1 / MySQL 5.7 array_push var_dump
last run:
2024-03-27 12:06:21
8
- PHP 7.4 / MySQL 8.0 mysqli_query mysqli_fetch_assoc explode count array_push trim print_r array_count_values
last run:
2022-06-20 17:40:11
8
- PHP 7.4 / MySQL 8.0 date strtotime array_push
last run:
2022-03-23 00:19:05
8
array_push - New snippets
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:56:55
2
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export array_combine substr_replace range
added at:
2024-12-06 18:47:24
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:33:38
2
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:33:15
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:32:46
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:32:35
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:32:26
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:30:54
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:30:33
1
-
PHP 8.2.13 / MySQL 8.0 count shuffle array_push array_slice var_export
added at:
2024-12-06 18:30:05
1