\n";
# Check it's a well formed UTF-8 string
require_once UTF8 . '/utils/validation.php';
if ( utf8_is_valid($str) ) {
print "It's well formed UTF-8
\n";
} else {
print "It's badly formed UTF-8 - this shouldn't happen
\n";
}
print "Num chars: ".utf8_strlen($str)."
\n";
print "Uppercase: ".utf8_strtoupper($str)."
\n";
# Load an additional function;
require_once UTF8 . '/strrev.php';
print "Reversed: ".utf8_strrev($str)."
\n";
?>