wp_spaces_regexp

FUNCTION wp-includes\formatting.php (ligne 5841) github
Returns the regexp for common whitespace characters. By default, spaces include new lines, tabs, nbsp entities, and the UTF-8 nbsp. This is designed to replace the PCRE \s sequence. In ticket #22692, that sequence was found to be unreliable due to random inclusion of the A0 byte.

Paramètres

Entrée :
N/A
Sortie :
@return string The spaces regexp.

Utilisation

// Utilisation de la fonction wp_spaces_regexp
$result = wp_spaces_regexp();

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...