* @version 1.1.0 * @link http://aidanlister.com/repos/v/function.text2array.php * @param string $text Text */ function text2array($text) { $array = preg_split('#(\r\n?|\n)#', $text, -1, PREG_SPLIT_NO_EMPTY); $array = array_map('trim', $array); return $array; } ?>