note 91093 deleted from function.imap-fetchbody by danbrown

From: Date: Mon, 25 May 2009 22:08:52 +0000
Subject: note 91093 deleted from function.imap-fetchbody by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155973@lists.php.net to get a copy of this message
Note Submitter: Henrik ---- In Response to atamido at gmail dot remove dot com: Thank you for your nice function. I would like to suggest two little things to make it even better: 1. I use the partnumber as key for the array as the former numbers itself do not represent anything, but the partnumber can be usefull while using foreach() or in directly accessing on specific part. $part_array[$prefix.'1'] = array('part_number' => $prefix.'1', 'part_object' => $obj); 2. For my program its very useful to remove all entries of that array which have subparts ("isset($array['parts']"). Of course it depends on the program one is writing, but in my case I just need a plain overview to get each PLAIN / HTML part and each attachment and be able to fetch each of them in a single file. Great thanks!

« previous php.notes (#155973) next »