fork(1) download
  1. <?php
  2.  
  3. $str = 'Eli\ is\ beautiful Fran\ is\ ugly Oso\ is\ nice';
  4. $params = preg_split('/(?<!\\\\) /', $str);
  5.  
  6. var_dump($params);
  7.  
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  string(18) "Eli\ is\ beautiful"
  [1]=>
  string(14) "Fran\ is\ ugly"
  [2]=>
  string(13) "Oso\ is\ nice"
}