Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

date_get_last_errors()

Example

Return warnings and errors encountered while parsing a date string.

<?php
date_create(“gyuiyiuyui%&&/”);
print_r(date_get_last_errors());
?>

Definition and Usage

The date_get_last_errors() function returns warnings and errors encountered during the parsing of a date string.

Syntax

date_get_last_errors()

Technical Details

 

Return Value:

Returns an array containing details about the errors and warnings.

PHP Version:

5.3+