IntlChar::isUAlphabetic
(PHP 7, PHP 8)
IntlChar::isUAlphabetic — Check if code point has the Alphabetic Unicode property
Beschreibung
$codepoint): ?boolCheck if a code point has the Alphabetic Unicode property.
This is the same as IntlChar::hasBinaryProperty($codepoint, IntlChar::PROPERTY_ALPHABETIC)
Parameter-Liste
-
codepoint -
Der int-Wert des Codepoints (z. B.
0x2603für U+2603 SNOWMAN) oder das Zeichen als UTF-8-String kodiert (z.B."\u").
Rückgabewerte
Returns true if
codepoint has the Alphabetic Unicode property, false if not. Returns null on failure.
Beispiele
Beispiel #1 Testen unterschiedlicher Codepoints
<?php
var_dump(IntlChar::isUAlphabetic("A"));
var_dump(IntlChar::isUAlphabetic("1"));
var_dump(IntlChar::isUAlphabetic("\u"));
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
bool(true) bool(false) bool(false)
Siehe auch
- IntlChar::isalpha() - Check if code point is a letter character
- IntlChar::hasBinaryProperty() - Check a binary Unicode property for a code point
IntlChar::PROPERTY_ALPHABETIC

