fork(1) download
  1. <?php
  2. $output = 'text
  3. &NewLine;
  4. &NewLine;more text
  5. &NewLine;
  6. &NewLine;ja';
  7.  
  8. $explode = preg_split('/(&NewLine;|(\r\n|\r|\n))+/', $output, -1, PREG_SPLIT_NO_EMPTY);
  9. var_dump($explode);
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  string(4) "text"
  [1]=>
  string(9) "more text"
  [2]=>
  string(2) "ja"
}