|
IntlDateFormatter::isLenientdatefmt_is_lenientGet the lenient used for the IntlDateFormatter BeschreibungObjektorientierter Stil
public bool IntlDateFormatter::isLenient
( void
)
Prozeduraler Stil
bool datefmt_is_lenient
( IntlDateFormatter
$fmt
)Check if the parser is strict or lenient in interpreting inputs that do not match the pattern exactly. Parameter-Liste
Rückgabewerte
BeispieleBeispiel #1 datefmt_is_lenient example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
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
Siehe auch
|