array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'intlchar.isualphabetic.php', 1 => 'IntlChar::isUAlphabetic', ), 'up' => array ( 0 => 'class.intlchar.php', 1 => 'IntlChar', ), 'prev' => array ( 0 => 'intlchar.istitle.php', 1 => 'IntlChar::istitle', ), 'next' => array ( 0 => 'intlchar.isulowercase.php', 1 => 'IntlChar::isULowercase', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/intl/intlchar/isualphabetic.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7, PHP 8)
IntlChar::isUAlphabetic — Comprobar si un punto de código tiene la propiedad de Unicode Alphabetic
Comprueba si un punto de código tiene la propiedad de Unicode Alphabetic.
Esto es lo mismo que IntlChar::hasBinaryProperty($codepoint, IntlChar::PROPERTY_ALPHABETIC)
Ejemplo #1 Probar diferentes puntos de código
<?php
var_dump(IntlChar::isUAlphabetic("A"));
var_dump(IntlChar::isUAlphabetic("1"));
var_dump(IntlChar::isUAlphabetic("\u{2603}"));
?>
El resultado del ejemplo sería:
bool(true) bool(false) bool(false)
IntlChar::PROPERTY_ALPHABETIC