fork(2) download
  1. <?php
  2. $linha = "0000000001 001 00000000000090000001 01/01/2014 00:00:38 1 0 5";
  3. $partes = explode(" ", $linha);
  4. $i = 0;
  5. foreach ($partes as $campo) {
  6. echo 'campo' . ++$i . ' = ' . $campo . "\n";
  7. }
Success #stdin #stdout 0.02s 23556KB
stdin
Standard input is empty
stdout
campo1 = 0000000001
campo2 = 001
campo3 = 00000000000090000001
campo4 = 01/01/2014
campo5 = 00:00:38
campo6 = 1
campo7 = 0
campo8 = 5