note 26295 deleted from function.imap-fetchstructure by cmb
| From: | cmb@php.net | Date: | Thu, 08 Oct 2020 14:25:18 +0000 |
| Subject: | note 26295 deleted from function.imap-fetchstructure by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215548@lists.php.net to get a copy of this message | ||
Note Submitter: theUNDERSCOREVoodooChileADGMXdotNET
----
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)