日期:2014-05-17  浏览次数:20625 次

返回数组出现递归?
----------PHP----------
$mail_list = parse_xml_config($inx, "mailindex");
$receives = $mail_list['datas']['data'];
$sumCount = count($receives); //当前邮箱中的邮件总数
echo "count-->>$sumCount<br/>";
print_r($receives);
---------XML-----------
<?xml version="1.0" encoding="utf-8"?>
<mailindex>
  <datas>
  <data>
  <Return-Path>&lt;anonymous@214.netchina.com.cn&gt;</Return-Path>
  <Delivered-To>yushuai.niu@214.netchina.com.cn</Delivered-To>
  <Received>(ncmail 843 invoked by uid 401); 027 Feb 2012 22:43:50 -0000</Received>
  <Date>027 Feb 2012 22:43:50 -0000</Date>
  <Message-ID>&lt;20120227224350.842.ncmail@214.netchina.com.cn&gt;</Message-ID>
  <To>yushuai.niu@214.netchina.com.cn</To>
  <Subject>hhh</Subject>
  <X-PHP-Originating-Script>0:send_mode_class.php</X-PHP-Originating-Script>
  <From>yushuai.niu@214.netchina.com.cn</From>
  <X-Level>秘密</X-Level>
  <X-Encrypt>----====_1330382630_====----</X-Encrypt>
  <MIME-version>1.0</MIME-version>
  <Content-type>multipart/mixed;boundary=&quot;--==================_117335625==_&quot;</Content-type>
  <Time>2012-02-27 22:43:50</Time>
  <Size>24.16 KB</Size>
  <Attachs>
  <attach>
  <id>2</id>
  <name>netchina_1 ReleasedBy_sean(Data_2012-2-21).doc</name>
  <level>秘密</level>
  </attach>
  </Attachs>
  <bodyId>2</bodyId>
  </data>
  <data>
  <Return-Path>&lt;anonymous@214.netchina.com.cn&gt;</Return-Path>
  <Delivered-To>yushuai.niu@214.netchina.com.cn</Delivered-To>
  <Received>(ncmail 23267 invoked by uid 401); 027 Feb 2012 20:21:57 -0000</Received>
  <Date>027 Feb 2012 20:21:57 -0000</Date>
  <Message-ID>&lt;20120227202157.23265.ncmail@214.netchina.com.cn&gt;</Message-ID>
  <To>yushuai.niu@214.netchina.com.cn</To>
  <Subject>w-inx-2</Subject>
  <X-PHP-Originating-Script>0:send_mode_class.php</X-PHP-Originating-Script>
  <From>yushuai.niu@214.netchina.com.cn</From>
  <X-Level>绝密</X-Level>
  <X-Encrypt>----====_1330374117_====----</X-Encrypt>
  <MIME-version>1.0</MIME-version>
  <Content-type>multipart/mixed;boundary=&quot;--==================_783205184==_&quot;</Content-type>