str_repeat
str_repeat — Repeat a string.Description
str_repeat( string $string,Returns string repeated times times.
int $times ): string
Parameters
string
The string to be repeated.
times
Number of time the string string should be repeated.
times has to be greater than or equal to 0. If the times is set to 0, the function will return an empty string.
Return Values
Returns the repeated string.More information about str_repeat on official PHP documentation site
str_repeat - Popular snippets
- PHP 8.0 / MySQL 5.7 round memory_get_usage str_repeat round memory_get_usage str_repeat
last run:
2021-04-20 15:37:57
21
- PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat
last run:
2023-07-13 14:54:28
19
- PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat array_merge
last run:
2024-03-01 04:51:33
16
- PHP 8.1 / MySQL 5.7 array_count_values str_repeat rtrim
last run:
2023-08-27 08:06:40
15
- PHP 8.1 / MySQL 5.7 str_repeat fread
last run:
2023-03-13 19:55:25
15
- PHP 8.1 / MySQL 5.7 array_count_values str_repeat rtrim
last run:
2023-08-27 15:22:28
9
- PHP 8.1 / MySQL 8.0 rtrim str_repeat count var_export
last run:
2023-10-15 01:44:20
9
- PHP 7.4 / MySQL 5.7 round memory_get_usage str_repeat
last run:
2021-04-10 15:11:42
9
- PHP 8.1 / MySQL 5.7 array_count_values str_repeat rtrim
last run:
2023-08-27 07:59:14
8
str_repeat - New snippets
-
PHP 8.2.13 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:52:43
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:52:14
2
-
PHP 8.1 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:51:44
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:51:14
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:50:54
1
-
PHP 8.2.13 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:50:41
1
-
PHP 8.2.13 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:49:56
1
-
PHP 8.2.13 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:49:23
1
-
PHP 8.2.13 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:48:43
1
-
PHP 8.2.13 / MySQL 5.7 range str_repeat count gc_collect_cycles memory_get_usage
added at:
2024-08-14 07:47:45
1