Example 2. imap_get_quota() 4.3 or greater example
?php $mbox = imap_open( "{votre.hote.imap}" ,"mailadmin" ,"mot de passe",OP_HALFOPEN) or die("Connexion impossible: ".imap_last_error()); $quota_value = imap_get_quota($mbox, "user.toto"); if(is_array($quota_value)) {print "Utilisation actuelle: ". $quota_value['usage']; print "Quota:". $quota_value['limit'];} imap_close($mbox);?