| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
IntlDateFormatter::isLenientdatefmt_is_lenient(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) IntlDateFormatter::isLenient -- datefmt_is_lenient — IntlDateFormatter で使用する寛大さを取得する 説明オブジェクト指向型
public bool IntlDateFormatter::isLenient
( void
)
手続き型 パターンに正確にマッチしていない入力の処理を、 パーサが厳格に行うのか寛大に行うのかを調べます。 パラメータ
返り値
寛大なパーサの場合は 例例1 datefmt_is_lenient() の例
<?php例2 オブジェクト指向の例
<?php上の例の出力は以下となります。
lenient of the formatter is : TRUE
Trying to do parse('35/13/1971').
Result is : -2147483
Now lenient of the formatter is : FALSE
Trying to do parse('35/13/1971').
Result is :
Error_msg is : Date parsing failed: U_PARSE_ERROR
Error_code is : 9
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「IntlDateFormatter::isLenient - IntlDateFormatter で使用する寛大さを取得する」をGoogle検索
|