- print_r: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$string = "\xE1\x8D\x9F\x86";
preg_match_all( '/\X/u' , $string , $matches , PREG_SET_ORDER );
print_r($matches);
preg_match_all( '/./u' , $string , $matches1 , PREG_SET_ORDER );
print_r($matches1);
exit(0);