fork(5) download
  1. <?php
  2.  
  3. $str = 'محمد';
  4.  
  5. var_dump(mb_substr($str, 0, 1, 'utf8'));
Success #stdin #stdout 0s 20520KB
stdin
Standard input is empty
stdout
string(2) "م"