
26.03.2009, 02:16
|
|
Постоянный
Регистрация: 15.06.2008
Сообщений: 941
С нами:
9423746
Репутация:
2399
|
|
PHP код:
<?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 ) )
|
|
|