fork(38) download
  1. <?php
  2. $s = "02 02 02 02 \r\n\r\n 02 02 02 02 \r\n 02 02 02 02";
  3. $s = preg_replace ("/[\r\n]+/", "\n" , $s);
  4. echo $s;
  5.  
  6. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
02 02 02 02 
 02 02 02 02 
 02 02 02 02