« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 21 for getLocale (0.001 sec.)
IntlCalendar::getLocale — オブジェクトに関連付けられたロケールを取得する | PHP ... 12718
IntlCalendar::getLocale (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getLocale — オブジェクトに関連付けられたロケールを取得する 説明 オブジェクト指向型 public function IntlCalendar::getLocale ( int $type ): string | false 手 ... もっとも特殊なものへ並びます。 戻り値 ロケールを表す文字列を返します。 失敗した場合に false を返します. 例 例1 IntlCalendar::getLocale() <?php $cal = IntlCalendar :: createInstance ( IntlTimeZone :: getGMT (), 'en_US_CALIFORNIA' ); var_dump ( $cal -> getLoc ... ale ( Locale :: ACTUAL_LOCALE ), $cal -> getLocale ( Locale :: VALID_LOCALE ) ); 上の例の出力は以下となります。 string(2) "en" string(5) "en_US" 他のマニュアルの関連ページ P ...
https://man.mtool.work/php/8.3/intlcalendar.getlocale.html
MessageFormatter::getLocale — フォーマッタを作成した際のロケールを取得する | PH... 11315
MessageFormatter::getLocale msgfmt_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) MessageFormatter::getLocale -- msgfmt_get_locale — フォーマッタを作成した際のロケールを取得する 説明 オブジェクト指向型 public function Message ... Formatter::getLocale (): string 手続き型 function msgfmt_get_locale ( MessageFormatter $formatter ): string フォーマッタを作成した際のロケールを ... le ( $fmt ); ?> 例2 オブジェクト指向の例 <?php $fmt = new MessageFormatter ( 'en_US' , "Number {0,number}" ); echo $fmt -> getLocale (); ?> 上の例の出力は以下となります。 en_US 参考 msgfmt_create() - 新しいメッセージフォーマッタを作成する 他のマニュアルの ...
https://man.mtool.work/php/8.3/messageformatter.getlocale.html
IntlDateFormatter::getLocale — Formatter が使用するロケールを取得する | PHP 8.3 11112
IntlDateFormatter::getLocale datefmt_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) IntlDateFormatter::getLocale -- datefmt_get_locale — Formatter が使用するロケールを取得する 説明 オブジェクト指向型 public function IntlDateF ... ormatter::getLocale ( int $type = ULOC_ACTUAL_LOCALE ): string | false 手続き型 function datefmt_get_locale ( IntlDateFormatter $formatter , i ... rmatter :: FULL , 'America/Los_Angeles' , IntlDateFormatter :: GREGORIAN ); echo 'locale of the formatter is : ' . $fmt -> getLocale (); echo 'First Formatted output is ' . $fmt -> format ( 0 ); $fmt = new IntlDateFormatter ( 'de-DE' , IntlDateFormatter : ... rmatter :: FULL , 'America/Los_Angeles' , IntlDateFormatter :: GREGORIAN ); echo 'locale of the formatter is : ' . $fmt -> getLocale (); echo 'Second Formatted output is ' . $fmt -> format ( 0 ); ?> 上の例の出力は以下となります。 locale of the formatter i ...
https://man.mtool.work/php/8.3/intldateformatter.getlocale.html
IntlBreakIterator::getLocale — このオブジェクトに関連づけられたロケールを取得す... 11010
IntlBreakIterator::getLocale (PHP 5 >= 5.5.0, PHP 7, PHP 8) IntlBreakIterator::getLocale — このオブジェクトに関連づけられたロケールを取得する 説明 public function IntlBreakIterator::getLocale ( int $type ): string | false 警告 この関数は、 ...
https://man.mtool.work/php/8.3/intlbreakiterator.getlocale.html
Collator::getLocale — collator のロケール名を取得する | PHP 8.3 9809
Collator::getLocale collator_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getLocale -- collator_get_locale — collator のロケール名を取得する 説明 オブジェクト指向型 public function Collator::getLocale ( int $type ...
https://man.mtool.work/php/8.3/collator.getlocale.html
NumberFormatter::getLocale — フォーマッタのロケールを取得する | PHP 8.3 9606
NumberFormatter::getLocale numfmt_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::getLocale -- numfmt_get_locale — フォーマッタのロケールを取得する 説明 オブジェクト指向型 public function NumberFormatter::getLocale ...
https://man.mtool.work/php/8.3/numberformatter.getlocale.html
国際化関数 | PHP 8.3 8203
国際化関数 はじめに 国際化用拡張モジュール (これ以降では Intl と略します) は » ICU ライブラリのラッパーです。 PHP プログラマが、ロケール関連のさまざまな操作を行えるようにします。 フォーマット、音訳、エンコード変換、カレンダーの処理、 » UCA ... tor の直近のエラーコードを取得する Collator::getErrorMessage — collator の直近のエラーコードのテキストを取得する Collator::getLocale — collator のロケール名を取得する Collator::getSortKey — 文字列のソート用のキーを取得する Collator::getStrength — 現在の照 ... のエラーコードを取得する NumberFormatter::getErrorMessage — フォーマッタの直近のエラーメッセージを取得する NumberFormatter::getLocale — フォーマッタのロケールを取得する NumberFormatter::getPattern — フォーマッタのパターンを取得する NumberFormatter::getSymb ... 近の操作のエラーコードを取得する MessageFormatter::getErrorMessage — 直近の操作のエラーテキストを取得する MessageFormatter::getLocale — フォーマッタを作成した際のロケールを取得する MessageFormatter::getPattern — フォーマッタが使用するパターンを取得する Mes ...
https://man.mtool.work/php/8.3/book.intl.html
MessageFormatter クラス | PHP 8.3 8000
MessageFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに MessageFormatter は、言語に依存しない連結されたメッセージを作成するための具象クラスです。 このクラスのメソッドを使用して、 エンドユーザー向けのすべてのメッセ ... $values ): string | false public function getErrorCode (): int public function getErrorMessage (): string public function getLocale (): string public function getPattern (): string | false public function parse ( string $string ): array | false public st ... 近の操作のエラーコードを取得する MessageFormatter::getErrorMessage — 直近の操作のエラーテキストを取得する MessageFormatter::getLocale — フォーマッタを作成した際のロケールを取得する MessageFormatter::getPattern — フォーマッタが使用するパターンを取得する Mes ...
https://man.mtool.work/php/8.3/class.messageformatter.html
IntlBreakIterator クラス | PHP 8.3 7797
IntlBreakIterator クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに “break iterator” は、 テキスト中のどこに境界 (たとえば、単語や文章の境目) が位置するのかに関するメソッドを公開しています。 PHP の IntlBreakIterator は、 全ての break iterator ... owing ( int $offset ): int public function getErrorCode (): int public function getErrorMessage (): string public function getLocale ( int $type ): string | false public function getPartsIterator ( int $type = IntlPartsIterator::KEY_SEQUENTIAL ): IntlPart ... コードを取得する IntlBreakIterator::getErrorMessage — このオブジェクトの直近のエラーメッセージを取得する IntlBreakIterator::getLocale — このオブジェクトに関連づけられたロケールを取得する IntlBreakIterator::getPartsIterator — 境界と境界の間のフラグメントを走 ...
https://man.mtool.work/php/8.3/class.intlbreakiterator.html
基本的な使用法 | PHP 8.3 7797
基本的な使用法 各モジュールには、 手続き型とオブジェクト指向型の二種類の API が存在します。 それぞれの API について、対応するドキュメントで説明します。 注意 : 入力文字列は、すべて UTF-8 でエンコードされていなければなりません。 出力文字列も、 ... , "string#1" , "string#2" ); ?> 例2 オブジェクト指向型 API の使用例 <?php $coll = new Collator ( 'en_US' ); $al = $coll -> getLocale ( Locale :: ACTUAL_LOCALE ); echo "実際のロケール: $al \n" ; $formatter = new NumberFormatter ( 'en_US' , NumberFormatter ...
https://man.mtool.work/php/8.3/intl.examples.basic.html
PREV 1 2 3 NEXT