note 91093 added to function.imap-fetchbody

From: Date: Mon, 25 May 2009 06:47:27 +0000
Subject: note 91093 added to function.imap-fetchbody
Groups: php.notes 
Request: Send a blank email to php-notes+get-155952@lists.php.net to get a copy of this message
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! ---- Server IP: 212.124.37.9 Probable Submitter: 85.178.199.69 ---- Manual Page -- http://www.php.net/manual/en/function.imap-fetchbody.php Edit -- https://master.php.net/note/edit/91093 Del: integrated -- https://master.php.net/note/delete/91093/integrated Del: useless -- https://master.php.net/note/delete/91093/useless Del: bad code -- https://master.php.net/note/delete/91093/bad+code Del: spam -- https://master.php.net/note/delete/91093/spam Del: non-english -- https://master.php.net/note/delete/91093/non-english Del: in docs -- https://master.php.net/note/delete/91093/in+docs Del: other reasons-- https://master.php.net/note/delete/91093 Reject -- https://master.php.net/note/reject/91093 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#155952) next »