Check if code point is a space character

# IntlChar::isspace

(PHP 7)

IntlChar::isspace — Check if code point is a space character

### Description

public static IntlChar::isspace ( mixed `$codepoint` ) : bool

Determines if the specified character is a space character or not.

### 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 a space character, `FALSE` if not.

### Exemples

Exemple #1 Test de différents codepoint

`<?php
var_dump(IntlChar::isspace("A"));
var_dump(IntlChar::isspace(" "));
var_dump(IntlChar::isspace("\n"));
var_dump(IntlChar::isspace("\t"));
var_dump(IntlChar::isspace("\u{00A0}"));
?>`

L'exemple ci-dessus va afficher :

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

### Voir aussi

- IntlChar::isJavaSpaceChar() - Check if code point is a space character according to Java
- IntlChar::isWhitespace() - Check if code point is a whitespace character according to ICU
- IntlChar::isUWhiteSpace() - Check if code point has the White_Space Unicode property