IntlCalendar::getErrorMessage
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
IntlCalendar::getErrorMessage
Референца за `intlcalendar.geterrormessage.php` со подобрена типографија и навигација.
IntlCalendar::getErrorMessage
intlcal_get_error_message
(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
IntlCalendar::getErrorMessage -- intlcal_get_error_message — Земи ја последната порака за грешка на објектот
= NULL
Отвори RAR архива
Објектно-ориентиран стил (метод):
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.
Параметри
calendar-
Календарскиот објект, на процедурален интерфејс.
Вратени вредности
The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existence of an error. Returns false при неуспех.
Примери
Пример #1 IntlCalendar::getErrorMessage()
<?php
$cal = IntlCalendar::createInstance('UTC', 'en_US');
var_dump($cal->getErrorMessage());
$cal->getWeekendTransition(IntlCalendar::DOW_WEDNESDAY);
var_dump($cal->getErrorMessage());Пример #1 Пример што покажува затворачка ознака што го опфаќа последниот нов ред
string(12) "U_ZERO_ERROR" string(82) "intlcal_get_weekend_transition: Error calling ICU method: U_ILLEGAL_ARGUMENT_ERROR"