- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
//$unicodeChar = '\u135F';
//$string = json_decode('"'.$unicodeChar.'"');
$string = "\xE1\x8D\x9F";
echo "String is $string \n";
$result = preg_match_all( '/\X/u' , $string , $matches , PREG_SET_ORDER );
echo "Result is :".$result."\n";
var_dump($matches);
$result = preg_match_all( '/./u' , $string , $matches1 , PREG_SET_ORDER );
echo "Result is :".$result."\n";
var_dump($matches1);
exit(0);