fork(1) download
  1. <?php
  2. $original = 'firstword secondword thirdword';
  3. $result =
  4. substr($original,0,stripos($original,' '))
  5. .';'
  6. .substr($original,stripos($original,' ')+1);
  7.  
  8. echo $result;
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
firstword;secondword thirdword