|
MessageFormatter::formatMessagemsgfmt_format_messageQuick format message BeschreibungObjektorientierter Stil
public
static
string
MessageFormatter::formatMessage
( string
$locale
, string $pattern
, array $args
)Prozeduraler Stil
string
msgfmt_format_message
( string
$locale
, string $pattern
, array $args
)Quick formatting function that formats the string without having to explicitly create the formatter object. Use this function when the format operation is done only once and does not need and parameters or state to be kept. Parameter-Liste
Rückgabewerte
The formatted pattern string or BeispieleBeispiel #1 msgfmt_format_message example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 4,560 monkeys on 123 trees make 37.073 monkeys per tree 4.560 Affen auf 123 Bäumen sind 37,073 Affen pro Baum Siehe auch
|