<?php $linea = '"Hello and goodbye" "1234" "abcdefghijklmnopqrstu" "ab"'; $partes = explode('" "', trim($linea, '"')); echo '<pre>'; print_r($partes); echo '</pre>'; ?>