IntlChar::isxdigit

(PHP 7, PHP 8)

IntlChar::isxdigitCheck if code point is a hexadecimal digit

Beschreibung

public static IntlChar::isxdigit(int|string $codepoint): ?bool

Determines whether the specified code point is a hexadecimal digit.

true for characters with general category "Nd" (decimal digit numbers) as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII. (That is, for letters with code points 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)

This is equivalent to IntlChar::digit($codepoint, 16) >= 0.

Parameter-Liste

codepoint

Der int-Wert des Codepoints (z. B. 0x2603 für U+2603 SNOWMAN) oder das Zeichen als UTF-8-String kodiert (z.B. "\u").

Rückgabewerte

Returns true if codepoint is a hexadecimal character, false if not. Returns null on failure.

Beispiele

Beispiel #1 Testen unterschiedlicher Codepoints

<?php
var_dump
(IntlChar::isxdigit("A"));
var_dump(IntlChar::isxdigit("1"));
var_dump(IntlChar::isxdigit("\u"));
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(true)
bool(true)
bool(false)

Anmerkungen

Hinweis:

In order to narrow the definition of hexadecimal digits to only ASCII characters use:

<?php
$isASCIIHexadecimal 
IntlChar::ord($codepoint) <= 0x7F && IntlChar::isxdigit($codepoint);
?>

Siehe auch

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

2024 Suns Participant Critique: Damion Lee. Gentleman, he can waive a towel!

Enable us toward introduce yet another contemporary contributor in direction of Vivid Aspect, and our minute in opposition to throughout the Pacif ...

Geschrieben von RyanDunn am 28.11.2025 02:20:45
Forum: ASP, PERL, CGI, C und alles andere
Who would the Suns address within an Advancement Draft?

I'm 's July, and enable me inform on your own, it's Really just about anything out below inside the , the thermometer virtually burst at 118 withi ...

Geschrieben von RyanDunn am 28.11.2025 02:19:30
Forum: HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS
In spite of suspension, Miamis Thomas Bryant can order his championship

DENVERhe NBA will let suspended Miami Warm heart Thomas Bryant in direction of quickly be in just Denver's arena Thursday evening hence he can get ...

Geschrieben von RyanDunn am 28.11.2025 02:18:52
Forum: HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS
3 a long time in the past presently, the Cincinnati Bengals drafted

Upon this day, a few yrs in the past, the Cincinnati Bengals retained the initially in general select within the 2020 NFL of we dive into it, let ...

Geschrieben von RyanDunn am 28.11.2025 02:18:01
Forum: SQL / Datenbanken