这是我的数组:
Array
(
[0] => Array
(
[0] => Received: from mout.perfora.net ([74.208.4.194]:64110)
[1] => Received: from localhost (cpe-142-255-38-220.nyc.res.rr.com [142.255.38.220])
[2] => From: xxxxx <phoneleash@gearandroid.com>
[3] => To: 1v5z9hrt5z@thegrouptextshow.com
[4] => Message-ID: <1113754192.698.1364695577947.JavaMail.javamailuser@localhost>
[5] => References: <M38aa3cba44b8.+@gearandroid.com>
[6] => Subject: Re: SMS: +
[7] => MIME-Version: 1.0
[8] => Content-Type: multipart/mixed;
[9] => X-PhoneLeash: <M38aa3cba44b8.+@gearandroid.com>
[10] => Date: Sat, 30 Mar 2013 22:06:17 -0400
[11] => X-Provags-ID: V02:K0:leU7uup/etOXU8iaKYpIvO81rtv82ALEDU7D1ZsEeqw
[12] => Content-Type: multipart/alternative;
[13] => Content-Type: text/plain; charset=UTF-8
[14] => Content-Transfer-Encoding: 7bit
[15] => [Sent: 10:06 PM 03/30/2013]
[16] => Content-Type: text/html; charset=UTF-8
[17] => Content-Transfer-Encoding: 7bit
[18] => <HTML><HEAD></HEAD><BODY style="background-color:#ffffff">C TN<br>---<br>Add // to the end of your reply<br>[Sent: 10:06 PM 03/30/2013]<hr><table style="margin: auto;"><tr><td><a href=https://www.facebook.com/share.php?u=http://www.facebook.com/phoneleash><img src="http://gearandroid.com/pics/fbshare.png"></a></td><font face="helvetica"><td><a href=https://www.facebook.com/share.php?u=http://www.facebook.com/phoneleash>Enjoy PhoneLeash? Let your FB friends know!</a></td></font></tr></table><br></BODY></HTML>
)
[1] => Array
(
[0] => Received
[1] => Received
[2] => From
[3] => To
[4] => Message-ID
[5] => References
[6] => Subject: Re: SMS
[7] => MIME-Version
[8] => Content-Type
[9] => X-PhoneLeash
[10] => Date
[11] => X-Provags-ID
[12] => Content-Type
[13] => Content-Type
[14] => Content-Transfer-Encoding
[15] => [Sent
[16] => Content-Type
[17] => Content-Transfer-Encoding
[18] => <HTML><HEAD></HEAD><BODY style="background-color:#ffffff">C TN<br>---<br>Add // to the end of your reply<br>[Sent: 10:06 PM 03/30/2013]<hr><table style="margin
)
[2] => Array
(
[0] => from mout.perfora.net ([74.208.4.194]:64110)
[1] => from localhost (cpe-142-255-38-220.nyc.res.rr.com [142.255.38.220])
[2] => xxx <phoneleash@gearandroid.com>
[3] => 1v5z9hrt5z@thegrouptextshow.com
[4] => <1113754192.698.1364695577947.JavaMail.javamailuser@localhost>
[5] => <M38aa3cba44b8.+@gearandroid.com>
[6] => xxxxxxx
[7] => 1.0
[8] => multipart/mixed;
[9] => <M38aa3cba44b8.xxxxx@gearandroid.com>
[10] => Sat, 30 Mar 2013 22:06:17 -0400
[11] => V02:K0:leU7uup/etOXU8iaKYpIvO81rtv82ALEDU7D1ZsEeqw
[12] => multipart/alternative;
[13] => text/plain; charset=UTF-8
[14] => 7bit
[15] => 10:06 PM 03/30/2013]
[16] => text/html; charset=UTF-8
[17] => 7bit
[18] => auto;"><tr><td><a href=https://www.facebook.com/share.php?u=http://www.facebook.com/phoneleash><img src="http://gearandroid.com/pics/fbshare.png"></a></td><font face="helvetica"><td><a href=https://www.facebook.com/share.php?u=http://www.facebook.com/phoneleash>Enjoy PhoneLeash? Let your FB friends know!</a></td></font></tr></table><br></BODY></HTML>
)
)
我需要能够将[1][18]
, [2][2]
, [2][10]
,的值存储[2][21]
到特定的变量中,以便以后可以剪切除实际文本之外的所有内容,然后将其作为值存储在 MYSQL 中。这对我有帮助,但我只需要我指定的 4 个元素的值。