I have the following info in a db column – how could I look for the newline so I can seperate this into an array?
Address1
Address2
Address3
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can try with: “explode()”
$arr = explode ("\n" , $the_db_column_field)and then into $arr you’ll have te single “address1″,”address2″,”address3” etc..
(via php official)