<?php $content = "this\nis a\nsimple\ntext\n"; preg_match_all("/.*\n/i", $content, $words ); print_r($words); ?>
Array ( [0] => Array ( [0] => this [1] => is a [2] => simple [3] => text ) )