HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

date_get_last_errors

Description

The date_get_last_errors of Date / Time for PHP returns the warnings and errors.

Syntax

date_get_last_errors ( void ) : array

Return

Returns array containing info about warnings and errors.

Examples

1

<?

$date = date_create("invalid");

$return = date_get_last_errors();

print_r($return);
Array
(
    [warning_count] => 1
    [warnings] => Array
        (
            [6] => Double timezone specification
        )

    [error_count] => 1
    [errors] => Array
        (
            [0] => The timezone could not be found in the database
        )

)