No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

IntlCalendar::getErrorMessage

intlcal_get_error_message

(PHP 5 >= 5.5.0, PHP 7, PECL >= 3.0.0a1)

IntlCalendar::getErrorMessage -- intlcal_get_error_messageGet last error message on the object

PHP: IntlCalendar::getErrorMessage - Manual Home of Manuel PHP  Contents Haut

Description

Object oriented style (method):

public IntlCalendar::getErrorMessage ( void ) : string

Procedural style:

intlcal_get_error_message ( IntlCalendar $calendar ) : string

Returns the error message (if any) associated with the error reported by IntlCalendar::getErrorCode() or intlcal_get_error_code(). If there is no associated error message, only the string representation of the name of the error constant will be returned. Otherwise, the message also includes a message set on the side of the PHP binding.

PHP: IntlCalendar::getErrorMessage - Manual Home of Manuel PHP  Contents Haut

Parameters

calendar

The calendar object, on the procedural style interface.

PHP: IntlCalendar::getErrorMessage - Manual Home of Manuel PHP  Contents Haut

Return Values

The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existance of an error.

PHP: IntlCalendar::getErrorMessage - Manual Home of Manuel PHP  Contents Haut

Examples

Example #1 IntlCalendar::getErrorMessage()

<?php
$cal 
IntlCalendar::createInstance('UTC''en_US');
var_dump($cal->getErrorMessage());

$cal->getWeekendTransition(IntlCalendar::DOW_WEDNESDAY);
var_dump($cal->getErrorMessage());

The above example will output:

string(12) "U_ZERO_ERROR"
string(82) "intlcal_get_weekend_transition: Error calling ICU method: U_ILLEGAL_ARGUMENT_ERROR"

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph