PHP » PYTHON |
login |
register |
about
|
PYTHON str_repeat
is this article helpful?
|
Python replacement for PHP's str_repeat
[
edit
| history
]
result = input * multiplier Example: >>> "a" * 5 'aaaaa' str_repeat(PHP 4, PHP 5) str_repeat — Repeat a string Description
string str_repeat
( string $input
, int $multiplier
)
Returns input repeated multiplier times. Parameters
Return ValuesReturns the repeated string. Examples
Example #1 str_repeat() example
<?phpThe above example will output: -=-=-=-=-=-=-=-=-=-=
See Also
|
more
Recently updated
more
Most requested
|