Thread
:
[SOLVED] Textarea To Array
View Single Post
#
5
(
permalink
)
12-24-08, 02:09 AM
Nico
Community Leader
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
I'd remove the return carriage (
\r
) from the
explode()
, 'cause it's not always present. I'd just explode on the
\n
and then (if you want)
trim()
each line to remove the possible return carriage character.
__________________
Zend Certified Engineer
|
My Twitter
|
HotScripts' Blog
|
HotScripts' Twitter
|
How to ask questions the smart way
Nico
View Public Profile
Visit Nico's homepage!
Find all posts by Nico