php怎么通过换行回车符分割字符串

explode函数可以将一个字符串分割成数组,第一个参数是分割符,第二个参数是要分割的字符串

$arr = explode("\r\n", $str);

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: