- Questo è un carattere delimitatore Unicode (categorie "Z" = "Zs" o "Zl" o " Zp " ), ma non è nemmeno uno spazio unificatore (U + 00A0 NBSP o U + 2007, spazio o U + 202F Narrow NBSP).
- U + 000A LINE FEED.
- U + 000B TAVOLA VERTICALE.
- U + 000C FORM FORM.
- U + 000D RESTITUZIONE.
- U + 001C SEPARATORE FILE
- U + 001D SEPARATORE DI GRUPPO.
- U + 001E INGRESSO SEPARATORE.
- U + 001F SEPARATORE UNITÀ.
- U + 0009 TABULAZIONE ORIZZONTALE.
bool IntlChar::isWhitespace ($codepoint)Parameters:Questa funzione accetta un singolo $codepoint parametro richiesto. Il parametro di input è un carattere o un valore intero codificato come stringa UTF-8.Valore restituito:se $codepoint è un carattere whiteSpace secondo ICU, allora restituisce True, altrimenti restituisce False.Below I programmi illustrano la funzione IntlChar::isWhitespace()in PHP: Programma 1:
// Codice PHP per l’illustrazione
// Funzione IntlChar::iswhitespace()
// Inserisci la lettera maiuscola
var_dump (IntlChar::iswhitespace (
"R"
));
// Inserisci una lettera minuscola
var_dump (IntlChar::iswhitespace (
"r"
));
// Inserisci il carattere Whitesapce & quot; / n & quot;
var_dump (IntlChar::iswhitespace (
""
)) ;
< br> // Inserisci la stringa codificata
var_dump (IntlChar::iswhitespace (
"u {00A0}"
));
// Inserisci uno spazio
var_dump (IntlChar::iswhitespace (
""
));
?>
Esci : bool (false) NULL bool ( true) bool (false) bool (true)
Programma 2:
// Codice PHP per IntlChar::iswhitespace()
// funzione
// Dichiara l’array $arr
$arr
=
array
(
" "
,
""
,
,
" G "
);
// esegui ciclo per ogni elemento dell’array
foreach
(
$arr
as
$val
) {
// Convalida ogni elemento come dati code point
var_dump (IntlChar::iswhitespace (
$val
));
}
?>
Esci : bool (true) bool (true) bool (false) bool (true) NULLArticoli correlati:
- IntlChar::isalpha() Fu nction
- Funzione IntlChar::isbase()
- Funzione IntlChar::isblank()
- IntlChar::iscntrl() Funzione
Ci auguriamo che questo articolo ti abbia aiutato a risolvere il problema. Oltre a PHP IntlChar :: isWhitespace () Funzione, controlla altri argomenti relativi a PHP.
Vuoi eccellere in Python? Consulta la nostra recensione dei migliori corsi online Python 2023. Se sei interessato alla scienza dei dati, controlla anche come imparare a programmare in R.
A proposito, questo materiale è disponibile anche in altre lingue:
- PHP IntlChar :: isWhitespace () Funzione
- Italiano PHP IntlChar :: isWhitespace () Funzione
- Deutsch PHP IntlChar :: isWhitespace () Funzione
- Français PHP IntlChar :: isWhitespace () Funzione
- Español PHP IntlChar :: isWhitespace () Funzione
- Türk PHP IntlChar :: isWhitespace () Funzione
- Русский PHP IntlChar :: isWhitespace () Funzione
- Português PHP IntlChar :: isWhitespace () Funzione
- Polski PHP IntlChar :: isWhitespace () Funzione
- Nederlandse PHP IntlChar :: isWhitespace () Funzione
- 中文 PHP IntlChar :: isWhitespace () Funzione
- 한국어 PHP IntlChar :: isWhitespace () Funzione
- 日本語 PHP IntlChar :: isWhitespace () Funzione
- हिन्दी PHP IntlChar :: isWhitespace () Funzione
Boston | 2023-02-07
Mi stavo preparando per il mio colloquio di codifica, grazie per aver chiarito questo punto - PHP IntlChar :: isWhitespace () Funzione in Python non è il più semplice. Lo userò nella mia tesi di laurea
Moscow | 2023-02-07
Grazie per le spiegazioni! Sono rimasto bloccato con PHP IntlChar :: isWhitespace () Funzione per alcune ore, finalmente l'ho fatto 🤗. Tornerò domani con un feedback
Singapore | 2023-02-07
Grazie per le spiegazioni! Sono rimasto bloccato con PHP IntlChar :: isWhitespace () Funzione per alcune ore, finalmente l'ho fatto 🤗. Tornerò domani con un feedback