fork download
  1. <?php
  2. $str = '11 2222-3333;12 9 1111-2222;18 1111-2222;11 2222-3333';
  3. $strs = explode(';', $str);
  4. foreach($strs as $st){
  5. echo $st;
  6. echo PHP_EOL;
  7. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
11 2222-3333
12 9 1111-2222
18 1111-2222
11 2222-3333