(No version information available, might be only in CVS)
is_unicode — Finds whether a variable is a unicode string
The variable being evaluated.
Returns TRUE if var is a unicode string, FALSE otherwise.
Example #1 is_unicode() example
<?php
// Declare a unicode string
$unicode = 'This is a unicode string';
// Declare a binary string
$binary = b'This is a binary string';
var_dump(is_unicode($unicode), is_unicode($binary));
?>
The above example will output:
bool(true) bool(false)