<?php $linha = "0000000001 001 00000000000090000001 01/01/2014 00:00:38 1 0 5"; $i = 0; foreach ($partes as $campo) { echo 'campo' . ++$i . ' = ' . $campo . "\n"; }
Standard input is empty
campo1 = 0000000001 campo2 = 001 campo3 = 00000000000090000001 campo4 = 01/01/2014 campo5 = 00:00:38 campo6 = 1 campo7 = 0 campo8 = 5