« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for formatMessage (0.002 sec.)
MessageFormatter::formatMessage — 手早くメッセージをフォーマットする | PHP 8.3 11849
MessageFormatter::formatMessage msgfmt_format_message (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) MessageFormatter::formatMessage -- msgfmt_format_message — 手早くメッセージをフォーマットする 説明 オブジェクト指向型 public static fun ... ction MessageFormatter::formatMessage ( string $locale , string $pattern , array $values ): string | false 手続き型 function msgfmt_format_message ( string $loc ... ne apple...} other {are # apples!} }" , [ 'apple' => 0 ] ), "\n" ; 例2 オブジェクト指向の例 <?php echo MessageFormatter :: formatMessage ( "en_US" , "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree\n" , array( 4560 , 12 ... 3 , 4560 / 123 )); echo MessageFormatter :: formatMessage ( "de" , "{0,number,integer} Affen auf {1,number,integer} Bäumen sind {2,number} Affen pro Baum\n" , array( 4560 , 123 , 4 ...
https://man.mtool.work/php/8.3/messageformatter.formatmessage.html
MessageFormatter クラス | PHP 8.3 8575
MessageFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに MessageFormatter は、言語に依存しない連結されたメッセージを作成するための具象クラスです。 このクラスのメソッドを使用して、 エンドユーザー向けのすべてのメッセ ... le , string $pattern ): ? MessageFormatter public function format ( array $values ): string | false public static function formatMessage ( string $locale , string $pattern , array $values ): string | false public function getErrorCode (): int public function ... :create — 新しいメッセージフォーマッタを作成する MessageFormatter::format — メッセージをフォーマットする MessageFormatter::formatMessage — 手早くメッセージをフォーマットする MessageFormatter::getErrorCode — 直近の操作のエラーコードを取得する MessageFormatter: ...
https://man.mtool.work/php/8.3/class.messageformatter.html
国際化関数 | PHP 8.3 7459
国際化関数 はじめに 国際化用拡張モジュール (これ以降では Intl と略します) は » ICU ライブラリのラッパーです。 PHP プログラマが、ロケール関連のさまざまな操作を行えるようにします。 フォーマット、音訳、エンコード変換、カレンダーの処理、 » UCA ... :create — 新しいメッセージフォーマッタを作成する MessageFormatter::format — メッセージをフォーマットする MessageFormatter::formatMessage — 手早くメッセージをフォーマットする MessageFormatter::getErrorCode — 直近の操作のエラーコードを取得する MessageFormatter: ...
https://man.mtool.work/php/8.3/book.intl.html
PREV 1 NEXT