fork(9) download
  1. <?php
  2.  
  3. $re = '/\w{3}/u';
  4. $str = 'waderòròцчшщ中华人民共和国';
  5.  
  6. preg_match_all($re, $str, $matches);
  7.  
  8. // Print the entire match result
  9. print_r($matches);
  10.  
Success #stdin #stdout 0s 82944KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => wad
            [1] => erò
            [2] => ròц
            [3] => чшщ
            [4] => 中华人
            [5] => 民共和
        )

)