« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for plural (0.002 sec.)
ngettext — gettext の複数形版 | PHP 8.3 11406
ngettext (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) ngettext — gettext の複数形版 説明 function ngettext ( string $singular , string $plural , int $count ): string 複数形版の gettext() です。 言語によっては、数量に応じていくつかの複数形が存在する ... ことがあります。 パラメータ singular 単数形のメッセージ ID。 plural 複数形のメッセージ ID。 count 数 (件数など)。この数にあわせて翻訳を決定します。 戻り値 singular および plural で表されるメ ...
https://man.mtool.work/php/8.3/function.ngettext.html
dngettext — dgettext の複数形版 | PHP 8.3 11113
dngettext (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) dngettext — dgettext の複数形版 説明 function dngettext ( string $domain , string $singular , string $plural , int $count ): string dngettext() 関数により、単一の複数形メッセージ参照について 現 ... 在のドメインを上書きすることができます。 パラメータ domain ドメイン。 singular plural count 戻り値 成功した場合に文字列を返します。 エラー / 例外 domain が空の string であるか、1024 バイトより長い場合、 Value ... Error がスローされます。 singular または plural が 4096 バイトより長い場合、 ValueError がスローされます。 変更履歴 バージョン 説明 8.4.0 domain が空の string である場合、 ...
https://man.mtool.work/php/8.3/function.dngettext.html
dcngettext — dcgettext の複数形版 | PHP 8.3 10090
dcngettext (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) dcngettext — dcgettext の複数形版 説明 function dcngettext ( string $domain , string $singular , string $plural , int $count , int $category ): string この関数により単一の複数形メッセージの参 ... 照について カレントのドメインを上書きすることができます。 パラメータ domain ドメイン。 singular plural count category 戻り値 成功した場合に文字列を返します。 参考 ngettext() - gettext の複数形版 他のマニュアルの関連ページ Pyt ...
https://man.mtool.work/php/8.3/function.dcngettext.html
MessageFormatter::formatMessage — 手早くメッセージをフォーマットする | PHP 8.3 8042
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 ... ne {#st} two {#nd} few {#rd} other {#th}}!' , [ 'place' => 3 ]), "\n" ; echo msgfmt_format_message ( "en" , "There {apple, plural, =0 {are no apples} =1 {is one apple...} other {are # apples!} }" , [ 'apple' => 0 ] ), "\n" ; 例2 オブジェクト指向の例 <? ... {#nd} few {#rd} other {#th}}!' , [ 'place' => 3 ]), "\n" ; echo MessageFormatter :: formatMessage ( "en" , "There {apple, plural, =0 {are no apples} =1 {is one apple...} other {are # apples!} }" , [ 'apple' => 0 ] ), "\n" ; 上の例の出力は以下となります ...
https://man.mtool.work/php/8.3/messageformatter.formatmessage.html
NumberFormatter クラス | PHP 8.3 7604
NumberFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに プログラムで数値を保存したり操作したりする際には、 ロケールに依存しないバイナリ表現を使用します。 数値を表示するときに、ロケールにあわせた文字列形式に変換しま ... ; public const int PATTERN_RULEBASED ; public const int IGNORE ; public const int CURRENCY_ISO ; public const int CURRENCY_PLURAL ; public const int CURRENCY_ACCOUNTING ; public const int CASH_CURRENCY ; public const int CURRENCY_STANDARD ; public cons ... NumberFormatter::CURRENCY_ISO int ISO 通貨形式(例: "USD1.00")。PHP 8.5.0 以降で利用可能です。 NumberFormatter::CURRENCY_PLURAL int 複数形の通貨形式(例: "1.00 US dollar" および "3.00 US dollars")。PHP 8.5.0 以降で利用可能です。 NumberFormatter::CAS ... CIMAL_COMPACT_SHORT 、 NumberFormatter::DECIMAL_COMPACT_LONG 、 NumberFormatter::CURRENCY_ISO 、 NumberFormatter::CURRENCY_PLURAL 、 NumberFormatter::CASH_CURRENCY 、 NumberFormatter::CURRENCY_STANDARD が追加されました。 8.4.0 クラス定数が型付けされまし ...
https://man.mtool.work/php/8.3/class.numberformatter.html
新機能 | PHP 8.3 6580
新機能 PHP コア パイプ演算子 パイプ演算子( |> ) が追加されました。 <?php $result = "Hello World" |> strlen (...); print $result . PHP_EOL ; // Prints "11" 定数式にクロージャ 定数式に、 クロージャ や 第一級callable を指定できるようになりまし ... れます。 Intl 様々な通貨関連の数値フォーマット向けに、 クラス定数 NumberFormatter::CURRENCY_ISO , NumberFormatter::CURRENCY_PLURAL , NumberFormatter::CASH_CURRENCY , NumberFormatter::CURRENCY_STANDARD が追加されました。 指定されたロケールで likely tag を ...
https://man.mtool.work/php/8.3/migration85.new-features.html
PREV 1 NEXT