I want to take data entered in this format:
John Smith
123 Fake Street
Fake City, 55555
http://website.com
and store the values in variables like so:
$name = 'John Smith';
$address = '123 Fake Street';
$city = 'Fake City';
$zip = '55555';
$website = 'http://website.com';
So first name will be whatever is entered on the first line address is whatever is on the second line city is whatever is entered on the third line before the comma seperator zip is whatever is on the third line after the comma and website is whatever is on the fifth line
I don't want the pattern rules to be stricter than that. Can someone please show how this can be done?