Seperating text lines in a memo

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

Seperating text lines in a memo

Post by mzfp2 »

Hi i want to seperate the text lines in a memo (text area) field into seperate strings, and then run a update query using each string and test wether the query was succesfull, but im not quite sure how to acheive this in PHP :P
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

This can be achieved very easily. Just remember that a new line is designated by \n at the end of that line. Check out the explode function at PHP.net.
Post Reply