fork(3) download
  1. <?php
  2.  
  3. $s = "すぐに諦めて昼寝をするかも知れない。 I may give up soon and just nap instead.";
  4. $s = preg_split("/\s{2}/", $s);
  5. print_r($s);
  6. ?>
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => すぐに諦めて昼寝をするかも知れない。
    [1] => I may give up soon and just nap instead.
)