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:
2022-11-30 20:26:28
10
- PHP 7.4 / MySQL 5.7 round memory_get_usage str_repeat
last run:
2021-04-10 15:11:42
9
- PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat array_merge
last run:
2023-02-04 02:20:49
8
- PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
last run:
2022-12-20 16:19:31
7
- PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
last run:
2022-12-20 16:21:36
5
- PHP 8.0 / MySQL 8.0 str_repeat count microtime printf
last run:
2022-01-03 14:00:14
5
- PHP 8.1 / MySQL 5.7 str_repeat count
last run:
2022-08-14 00:35:02
4
- PHP 8.1 / MySQL 8.0 rtrim str_repeat count var_export
last run:
2022-12-13 13:48:12
4
str_repeat - New snippets
-
PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat array_merge
added at:
2023-02-04 02:21:38
1
-
PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat
added at:
2023-01-24 08:59:37
1
-
PHP 8.1 / MySQL 8.0 count implode array_fill str_repeat json_encode
added at:
2023-01-22 14:09:41
2
-
PHP 8.1 / MySQL 8.0 rtrim str_repeat count var_export
added at:
2023-01-17 03:48:40
1
-
PHP 8.1 / MySQL 8.0 rtrim str_repeat count var_export
added at:
2023-01-17 03:47:54
1
-
PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
added at:
2022-12-20 16:21:09
5
-
PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
added at:
2022-12-20 16:20:38
3
-
PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
added at:
2022-12-20 16:20:27
1
-
PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
added at:
2022-12-20 16:20:02
2
-
PHP 8.1 / MySQL 5.7 str_repeat microtime ob_start ob_get_clean
added at:
2022-12-20 16:19:46
3