2014-10-05 59 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); 

?>