A placeholder is a group of elements separated with comma. First element
is required and defines index of value to insert (numeration starts from
0, and is directly used to access element from $values array). Second
element is a name of formatter to use. It's optional, and if not given,
value will be simply string-casted. Remaining elements are formatter-
specific and they are directly passed to the formatter class.
public resolvePlaceholders ( string $textWithPlaceholders, array $arguments, |
||
$textWithPlaceholders | string | String message with placeholder(s) |
$arguments | array | An array of values to replace placeholders with |
$locale | Locale to use (NULL for default one) | |
리턴 | string | The $text with placeholders resolved |