what you need to do is do a strstr by "\n" and then stick each line into an array. This should work but it isn't tested.
do
{
$line = strstr($lotsotest, "\n");
if($line == "")
break;
$return[$i] = substr($lotsotext, 0, (strlen($lotsotext) - strlen($line)));
$lotsotext = substr($line, 1, strlen($line));
}while(1);
give it a try and tell me how it works
-frymaster