note 76677 deleted from function.imap-getmailboxes by danbrown

From: Date: Wed, 20 May 2009 14:05:42 +0000
Subject: note 76677 deleted from function.imap-getmailboxes by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155791@lists.php.net to get a copy of this message
Note Submitter: ned at wgtech d0t com ---- Just to simplify what Mohamed Abbas said to get right to the heart of the matter: You have 7 constants to test against: LATT_NOINFERIORS, LATT_NOSELECT, LATT_MARKED, LATT_UNMARKED, LATT_REFERRAL, LATT_HASCHILDREN, and LATT_HASNOCHILDREN. You do a bitmask test against attributes to test the value; in in PHPese: if ($val->attributes & LATT_HASNOCHILDREN) { echo 'this has children'; } Don't make it more complicated than you have to.

« previous php.notes (#155791) next »