PHPのdate_get_last_errors()関数
例
日付文字列を解析する際に警告やエラーを返します:
<?php
date_create("gyuiyiuyui%&&/");
print_r(date_get_last_errors());
?>
date_create("gyuiyiuyui%&&/");
print_r(date_get_last_errors());
?>
実行中のインスタンス»
定義と使用法
/エラー見つかった日付文字列を解析する際にdate_get_last_errors()関数は警告を返します。
文法
date_get_last_errors();
技術的詳細
戻り値: | エラー/警告情報のアレイ上に含む情報を返します。 |
---|---|
PHPバージョン: | 5.3+ |
PHPの日付/時刻のリファレンスマニュアル