fork(8) download
  1. <?php
  2.  
  3. $str = chunk_split("AAAAABBBBBCCCCCDDDDD", 5, '.');
  4.  
  5. var_dump($str);
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
string(24) "AAAAA.BBBBB.CCCCC.DDDDD."