IntlChar
PHP Manual

IntlChar::isblank

(PHP 7)

IntlChar::isblankCheck if code point is a "blank" or "horizontal space" character

Description

public static bool IntlChar::isblank ( mixed $codepoint )

Determines whether the specified code point is a "blank" or "horizontal space", a character that visibly separates words on a line.

The following are equivalent definitions:

Liste de paramètres

codepoint

La valeur codepoint de type integer (i.e. 0x2603 pour U+2603 SNOWMAN), ou le caractère encodé en UTF-8 de type string (i.e. "\u{2603}")

Valeurs de retour

Returns TRUE if codepoint is either a "blank" or "horizontal space" character, FALSE if not.

Exemples

Exemple #1 Test de différents codepoint

<?php
var_dump
(IntlChar::isblank("A"));
var_dump(IntlChar::isblank(" "));
var_dump(IntlChar::isblank("\t"));
?>

L'exemple ci-dessus va afficher :

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

Voir aussi


IntlChar
PHP Manual