fork download
  1. <?php
  2. $out = fopen('php://stdout', "w");
  3.  
  4. $str = '<tt>Thu 01-Mar-2012</tt>  7th of Atrex, 3009<br>';
  5. $split = preg_split('@<\/?tt>|</?br>@', $str);
  6.  
  7. fwrite($out, var_export($split, true));
  8.  
  9. fclose($out);
  10. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
array (
  0 => '',
  1 => 'Thu 01-Mar-2012',
  2 => '  7th of Atrex, 3009',
  3 => '',
)