2014-10-05 62 views
0

的阵列问题接受一个数组,如:如何解决IMAP邮件

Array ([0] => Details of Contact Made: [1] =>) 
Array ([0] => ABC 
[email protected] 
1234567890 
     [1] =>) 
Array ([0] => I am interested in your Residential Plot. Please get in touch with me. 
Immediately 
     [1] =>)` 

如何提取信息:

ABC 
[email protected] 
1234567890 
I am interested in your Residential Plot. Please get in touch with me. 
Immediately 

请帮助。我一直在寻找最近5天。

+0

是,阵列的实际转储? – lagbox 2014-10-05 17:39:23

回答

0

你可以爆破“inputArray”,得到单个字符串啊,当我理解你的问题的时候正确。

例如:

<?php 

// $inputArray = 
/* 
Array ([0] => Details of Contact Made: [1] =>) Array ([0] => ABC 
[email protected] 
1234567890 
[1] =>) Array ([0] => I am interested in your Residential Plot. Please get in touch with me. 
Immediately 
[1] =>) 
*/ 

$extractedInformation = implode(" ", $inputArray); 
var_dump($extractedInformation); 

?>