note 26295 added to function.imap-fetchstructure
| From: | theUNDERSCOREVoodooChileADGMXdotNET at rack1 dot php dot net | Date: | Fri, 25 Oct 2002 10:21:04 +0000 |
| Subject: | note 26295 added to function.imap-fetchstructure | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38536@lists.php.net to get a copy of this message | ||
you can easily see through everything with these functions:
function printarray($array){
while(list($key,$value) = each($array)){
if(is_array($value)){
echo $key."(array):<blockquote>";
printarray($value);//recursief!!
echo "</blockquote>";
}elseif(is_object($value)){
echo $key."(object):<blockquote>";
printobject($value);
echo "</blockquote>";
}else{
echo $key."==>".$value."<br />";
}
}
}
function printobject($obj){
$array = get_object_vars($obj);
printarray($array);
}
end then do this:
$struct = imap_fetchstructure($box,$mailnr);
//$struct is een object!!
drukobjectaf($struct);
you get an extended tree-view into the hierarchie of objects and arrays
Comparing different mails(changing thenumber) may bring more clarity into this matter
(these functions may not work properly as they are translated from my dutch original, but they ought
to be OK)
--
http://www.php.net/manual/en/function.imap-fetchstructure.php
http://master.php.net/manage/user-notes.php?action=edit+26295
http://master.php.net/manage/user-notes.php?action=delete+26295
http://master.php.net/manage/user-notes.php?action=reject+26295