Nitsan Bin-Nun wrote:
$string = "xxx xxxx xx xxxxx xx xxx xxx xxxx xx xxxxx xx xxx"; $t = explode("\n", $string); foreach ($t as $k => $v) $t[$k] = explode(" ", $v); var_dump($t);
After assigning the string do $string = preg_replace('/\s+/',' ',$string); Then you should be able to do the two explodes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php