I have a name that I would like to explode so I can get two results ... first and last name. The problem is the contact name may include a middle name. I can explode the contact name, as seen below, but rather than isolating a first name and combining the middle with the last, I would prefer to isolate the last name and combine the middle with the first. Is this possible?
Contact Name = John Jay Doe
 = John Jay
 = Doe
$fieldName = explode(" ",$fields['contact_name'],2);