Share on Google+Share on Google+

date_get_last_errors

Advertisement
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());
?>

Advertisements

Posted on: August 26, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.