Home Tutorial Php Phpdate date_get_last_errors

 
 

date_get_last_errors
Posted on: August 26, 2009 at 12:00 AM
date_get_last_errors alias DateTime::getLastErrors function returns the warnings and errors while parsing a date/time string.

date_get_last_errors

date_get_last_errors alias DateTime::getLastErrors function returns the warnings and errors while parsing a date/time string.

Description

public static array DateTime::getLastErrors ( void )

Parameters

no parameter in this function.

Return Values

Returns array containing info about warnings and errors.

Example:

<?php
$date = date_create('asdfasdf');
print_r(DateTime::getLastErrors());
?>

Related Tags for date_get_last_errors:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.