reset
reset — Set the internal pointer of an array to its first element.Description
reset( array|object &$array ): mixedreset() rewinds array's internal pointer to the first element and returns the value of the first array element.
Parameters
array
The input array.
Return Values
Returns the value of the first array element, or false if the array is empty.More information about reset on official PHP documentation site
reset - Popular snippets
- PHP 8.1 / MySQL 5.7 reset key
last run:
2023-01-15 23:21:43
14
- PHP 8.1 / MySQL 5.7 reset current is_array next
last run:
2022-09-14 20:23:40
5
- PHP 8.1 / MariaDB 10 var_dump reset
last run:
2022-06-01 05:30:10
5
- PHP 8.1 / MySQL 5.7 reset is_int
last run:
2022-10-23 23:15:46
4
- PHP 8.1 / MySQL 5.7 array_map trim array_count_values arsort reset count key
last run:
2022-06-04 05:31:21
4
- PHP 8.1 / MariaDB 10 var_dump reset
last run:
2022-05-31 21:06:25
4
- PHP 8.0 / MySQL 5.7 preg_match_all reset array_reduce trim array_shift
last run:
2021-11-26 13:24:37
4
- PHP 8.1 / MySQL 5.7 reset current next key
last run:
2023-08-14 17:16:58
3
- PHP 8.1 / MySQL 5.7 array_slice key reset
last run:
2023-06-27 12:17:27
3
- PHP 8.1 / MySQL 5.7 reset count var_dump
last run:
2023-04-10 10:06:01
3
reset - New snippets
-
PHP 8.1 / MySQL 5.7 array_keys reset print_r
added at:
2024-11-05 14:07:39
1
-
PHP 8.1 / MySQL 5.7 array_keys reset print_r
added at:
2024-11-05 14:07:21
1
-
PHP 8.1 / MySQL 5.7 array_keys reset print_r
added at:
2024-11-05 14:06:45
1
-
PHP 8.1 / MySQL 5.7 reset rand
added at:
2024-11-04 15:29:48
2
-
PHP 8.1 / MySQL 5.7 reset rand spl_object_hash
added at:
2024-11-04 15:29:36
1
-
PHP 8.1 / MySQL 5.7 reset rand spl_object_hash
added at:
2024-11-04 15:29:26
2
-
PHP 8.1 / MySQL 5.7 reset rand spl_object_hash
added at:
2024-11-04 15:28:43
2
-
PHP 8.1 / MySQL 5.7 reset spl_object_hash
added at:
2024-11-04 15:27:56
2
-
PHP 8.1 / MySQL 5.7 reset spl_object_hash
added at:
2024-11-04 15:27:31
1
-
PHP 8.1 / MySQL 5.7 reset spl_object_hash
added at:
2024-11-04 15:27:19
1