PHP Loop through String (Email Body) and extract data
I am retrieving email using the PHP function imap_open() from a pop3 server. What I need to do is extract the body of the emails (ALL THE EMAILS HAVE THE SAME STRUCTURE), and enter the data that comes after the colon ':'. This is an example of a email-->
name: Thomas J Davis
vehicle: Van fullsize
from_city: san francisco
to_city: grand prairie
shipping-information: no shipping info listed
I need to figure out how to loop through the BODY (above example), and analyze each line to get the data after the colon to insert into a mysql database. 500 points.