IntlCalendar::getErrorMessage

intlcal_get_error_message

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

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

Beschreibung

Objektorientierter Stil (method):

public IntlCalendar::getErrorMessage(): string|false

Prozeduraler Stil:

intlcal_get_error_message(IntlCalendar $calendar): string|false

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.

Parameter-Liste

calendar

The calendar object, on the procedural style interface.

Rückgabewerte

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 on failure.

Beispiele

Beispiel #1 IntlCalendar::getErrorMessage()

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

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

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

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

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

NEW88 – Nền Tảng Cá Cược Trực Tuyến Hàng Đầu Trong Thời Đại Số

NEW88 – Nền Tảng Cá Cược Trực Tuyến Hàng Đầu Trong Thời Đại Số Trong thời đại công nghệ số phát triển mạ ...

Geschrieben von new88betus am 30.03.2026 09:52:31
Forum: PHP Developer Forum
Fehler bei Beziehung

Man braucht dafür wirklich Erfahrung und ein gutes Verständnis der Quellcodeentwicklung. Updates und der Austausch von Wissen machen das Lernen ...

Geschrieben von boughtquota am 30.03.2026 08:39:28
Forum: PHP Developer Forum
PHP session expires too early when using fetch requests

The issue of session expiration piqued my interest, particularly in terms of how fetch requests may effect it. Could there be a correlation betwee ...

Geschrieben von bonuswrestler am 30.03.2026 06:58:55
Forum: PHP Developer Forum
PHP-Performance bei vielen externen Requests

Würde vor allem 3 Dinge machen: Parallel Requests (curl_multi oder Guzzle async) statt nacheinander Caching (Redis/Memcached, auch kurze TTL h ...

Geschrieben von hanmira31 am 30.03.2026 05:15:36
Forum: PHP Developer Forum