FileAccess Orion

ChoiceMessageFormatterInterface

Tags
author

Abdellatif Ait boudad a.aitboudad@gmail.com

deprecated

since Symfony 4.2, use MessageFormatterInterface::format() with a %count% parameter instead

Table of Contents

choiceFormat()  : string
Formats a localized message pattern with given arguments.

Methods

choiceFormat()

Formats a localized message pattern with given arguments.

public choiceFormat(string $message, int $number, string $locale[, array<string|int, mixed> $parameters = [] ]) : string
Parameters
$message : string

The message (may also be an object that can be cast to string)

$number : int

The number to use to find the indice of the message

$locale : string

The message locale

$parameters : array<string|int, mixed> = []

An array of parameters for the message

Return values
string

Search results