valid_unicode
Helper function to determine if a Unicode value is valid.
Description
valid_unicode( (int) $i );
Parameters (1)
- 0. $i (int)
- Unicode value
Usage
if ( !function_exists( 'valid_unicode' ) ) { require_once ABSPATH . WPINC . '/kses.php'; } // Unicode value $i = -1; // NOTICE! Understand what this does before running. $result = valid_unicode($i);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/kses.php
- function valid_unicode($i) {
- return ( $i == 0x9 || $i == 0xa || $i == 0xd ||
- ($i >= 0x20 && $i <= 0xd7ff) ||
- ($i >= 0xe000 && $i <= 0xfffd) ||
- ($i >= 0x10000 && $i <= 0x10ffff) );
- }