repeat
Summary
Returns a repeated version of the input string.
Usage
input|repeat( count )
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| count | integer | The number of repeats. | Yes. |
Returns
A repeated version of the input string.
Description
This operator returns a repeated version of the input string. The "count" parameter must be used to define the desired number of repetitions.
Examples
Example 1
{'*DJ Cat Show*'|repeat( 2 )}The following string will be produced: "*DJ Cat Show* *DJ Cat Show* ".
Changed in Exponential 6.0.15
The named parameters of the operator repeat in Exponential 6.0.15 (eZTemplateArrayOperator::namedParameterList(), lib/eztemplate/classes/eztemplatearrayoperator.php), by position:
| Position | 6.0.15 (name in the code) | This page |
|---|---|---|
| 1 | repeat_times, required: No. | count, required: Yes. |
Contributors
- Balazs Halasy
- Graham Brookins Updated
Comments
Add a comment