- var_dump: documentation ( source)
- mb_check_encoding: documentation ( source)
- preg_match: documentation ( source)
<?php
function dostuff() {
echo 'mb_check_encoding: ';
$ans = mb_check_encoding( "\xF4\x90\x80\x80", 'UTF-8' );
var_dump( $ans );
echo 'preg_match: ';
$ans = preg_match( '//u', "\xF4\x90\x80\x80" );
var_dump( $ans );
}
dostuff();