输入banner图图片脚本导航/分类

php可以按换行符来分隔数组吗?

PHP可以用空格来把字符串分隔成数组。

$str = "Hello world. I love php!";  
$arr = explode(" ", $str); 

怎么按换行符来分隔?