update : 2015.11.03
php.shukuma.com검색:
|
MessageFormatter::formatMessagemsgfmt_format_message(PHP 5 >= 5.3.0, PECL intl >= 1.0.0) MessageFormatter::formatMessage -- msgfmt_format_message — Quick format message 설명객체 기반 형식
public
static
string
MessageFormatter::formatMessage
( string
$locale
, string $pattern
, array $args
)절차식 형식
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. 인수
반환값
The formatted pattern string or 예제Example #1 msgfmt_format_message() example
<?php Example #2 OO example
<?php 위 예제의 출력: 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 참고
|