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

[Script] Suche umfangreiches Forum

Ich habe in den letzten Tagen nvcasino1.de - https://nvcasino1.de/ (https://nvcasino1.de/)ausprobiert. Die Registrierung war unkompliziert, und d ...

Geschrieben von michaelsmith120698 am 11.10.2025 23:19:13
Forum: Apps und PHP Script Gesuche
json Rückgabe von Open Weather darstellen

Mache mal aus var_dump($data)​ dies hier echo ""; var_dump($data); echo ""; So wird dir das Array formatiert ausgegeben und du wirst dann sic ...

Geschrieben von scatello am 11.10.2025 09:44:19
Forum: PHP Developer Forum
Helfen! Doppelte Bestelleinträge in meiner Verkaufstabelle

Oh, the bane of data! Right, duplicate entries – I feel your pain. Ever feel like your database is mocking you with mirrored realities? Why is d ...

Geschrieben von RodneyThompson am 11.10.2025 05:53:14
Forum: SQL / Datenbanken
json Rückgabe von Open Weather darstellen

Hallo Zusammen, ich habe vor über 20 Jahren das letzte mal aktiv php und HTM programmiert. Nun wollte ich für ein kleines Projekt zuhause mal w ...

Geschrieben von Chaos_Lord am 10.10.2025 21:50:09
Forum: PHP Developer Forum