explode
explode — Split a string by a string.Description
explode( string $separator,Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator.
string $string,
int $limit = PHP_INT_MAX ): array
Parameters
Return Values
Returns an array of strings created by splitting the string parameter on boundaries formed by the separator. If separator is an empty string (""), explode() will return false. If separator contains a value that is not contained in string and a negative limit is used, then an empty array will be returned, otherwise an array containing string will be returned. If separator values appear at the start or end of string, said values will be added as an empty array value either in the first or last position of the returned array respectively.More information about explode on official PHP documentation site
explode - Popular snippets
- PHP 8.2 / microtime round explode end
last run:
2024-08-30 19:40:32
35
- PHP 8.1 / explode end microtime number_format
last run:
2024-08-28 06:55:16
17
- PHP 8.1 / explode strrev
last run:
2022-10-17 20:52:32
17
- 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 / array_map explode var_dump
last run:
2023-02-09 19:13:23
11
- PHP 8.1 / shuffle explode
last run:
2023-01-11 12:31:54
11
- PHP 8.0 / explode preg_match substr strpos
last run:
2022-02-11 21:10:03
11
- PHP 8.1 / explode array_pop print_r floor microtime
last run:
2024-07-27 21:32:46
10
- PHP 8.1 / shuffle explode
last run:
2023-01-11 12:22:51
10
- PHP 8.2 / microtime number_format explode round end
last run:
2024-08-30 19:42:48
9
explode - New snippets
-
PHP 7.4 / MariaDB 11.4 explode
added at:
2025-02-17 12:34:34
1
-
PHP 7.4 / MariaDB 11.4 explode
added at:
2025-02-17 12:34:28
1
-
PHP 7.4 / MariaDB 11.4 explode trim count rtrim substr json_decode
added at:
2025-02-13 17:38:00
1
-
PHP 7.4 / MariaDB 11.4 explode print_r
added at:
2025-02-13 17:29:15
1
-
PHP 7.4 / MariaDB 11.4 explode print_r str_repeat count array_merge substr
added at:
2025-02-12 11:52:53
1
-
PHP 7.4 / MariaDB 11.4 explode print_r str_repeat count array_merge substr
added at:
2025-02-12 11:52:22
2
-
PHP 7.4 / MariaDB 11.4 explode print_r str_repeat count array_merge substr
added at:
2025-02-12 11:51:04
1
-
PHP 7.4 / MariaDB 11.4 explode print_r str_repeat count array_merge substr
added at:
2025-02-12 11:47:47
1
-
PHP 7.4 / MariaDB 11.4 print_r explode str_repeat count array_merge substr
added at:
2025-02-07 10:05:30
2
-
PHP 7.4 / MariaDB 11.4 print_r explode str_repeat count array_merge
added at:
2025-02-06 20:43:02
1