<?php $body = '------- Begin forwarded message: From: Sarah Johnson <blabla@gmail.com> Subject: email subject Date: February 22, 2013 3:48:12 AM To: Email Recipient <thatwouldbe@yayyy.com> Cc: Ralph Johnson <johnson@gmail.com> Hi, hello, thank you and goodbye! blabla@gmail.com'; preg_match_all('/^([^:\v]+): *(.+)/m', $body, $m); var_export( array_combine($m[1], $m[2]) );
You have javascript disabled. You will not be able to edit any code.