|
MessageFormatter::createMessageFormatter::__constructmsgfmt_createConstructs a new Message Formatter BeschreibungObjektorientierter Stil (method)
public
static
MessageFormatter
MessageFormatter::create
( string
$locale
, string $pattern
)Objektorientierter Stil (constructor):
public
MessageFormatter::__construct
( string
$locale
, string $pattern
)Prozeduraler Stil
MessageFormatter
msgfmt_create
( string
$locale
, string $pattern
)Constructs a new Message Formatter Parameter-Liste
RückgabewerteThe formatter object BeispieleBeispiel #1 msgfmt_create 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
|