|
update : 2015.11.03
php.shukuma.com검색:
|
IntlDateFormatter::isLenientdatefmt_is_lenient(PHP 5 >= 5.3.0, PECL intl >= 1.0.0) IntlDateFormatter::isLenient -- datefmt_is_lenient — Get the lenient used for the IntlDateFormatter 설명객체 기반 형식
public bool IntlDateFormatter::isLenient
( void
)
절차식 형식 Check if the parser is strict or lenient in interpreting inputs that do not match the pattern exactly. 인수
반환값
예제Example #1 datefmt_is_lenient() example
<?phpExample #2 OO example
<?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
참고
|