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 8.0 count implode array_fill str_repeat
last run:
2024-10-11 15:23:08
21
- 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 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 7.4 / MySQL 8.0 count implode array_fill str_repeat
added at:
2024-11-19 09:12:33
1
-
PHP 8.2.13 / MySQL 8.0 count implode array_fill str_repeat
added at:
2024-10-11 15:26:23
1
-
PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat
added at:
2024-10-11 15:25:22
3
-
PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat
added at:
2024-10-11 15:24:49
2
-
PHP 8.0 / MySQL 8.0 count implode array_fill str_repeat
added at:
2024-10-11 15:24:36
1
-
PHP 5.6 / MySQL 8.0 count str_repeat mysqli_stmt_init mysqli_stmt_prepare mysqli_stmt_bind_param mysqli_stmt_execute mysqli_stmt_get_result mysqli_num_rows mysqli_fetch_assoc
added at:
2024-10-11 14:39:53
1
-
PHP 8.0 / MySQL 8.0 count str_repeat mysqli_stmt_init mysqli_stmt_prepare mysqli_stmt_bind_param mysqli_stmt_execute mysqli_stmt_get_result mysqli_num_rows mysqli_fetch_assoc
added at:
2024-10-11 14:39:35
1
-
PHP 8.0 / MySQL 8.0 count str_repeat mysqli_stmt_init mysqli_stmt_prepare mysqli_stmt_bind_param mysqli_stmt_execute mysqli_stmt_get_result mysqli_num_rows mysqli_fetch_assoc
added at:
2024-10-11 14:39:14
1
-
PHP 8.0 / MySQL 8.0 count str_repeat mysqli_stmt_init mysqli_stmt_prepare mysqli_stmt_bind_param mysqli_stmt_execute mysqli_stmt_get_result mysqli_num_rows mysqli_fetch_assoc
added at:
2024-10-11 14:39:06
1
-
PHP 8.0 / MySQL 8.0 count str_repeat mysqli_stmt_init mysqli_stmt_prepare mysqli_stmt_bind_param mysqli_stmt_execute mysqli_stmt_get_result mysqli_num_rows mysqli_fetch_assoc
added at:
2024-10-11 14:37:30
1