Re: Is Empty functionality to the Directory Functions
| From: | Cristian Rodríguez | Date: | Wed, 17 Dec 2008 22:48:29 +0000 |
| Subject: | Re: Is Empty functionality to the Directory Functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42312@lists.php.net to get a copy of this message | ||
Ólafur Waage escribió:
> $dir = dir("/foo/bar");
> var_dump($dir->empty()); // bool(true)
Use SplDirectoryIterator instead.
--
"We have art in order not to die of the truth" - Friedrich Nietzsche
Cristian Rodríguez R.
Platform/OpenSUSE - Core Services
SUSE LINUX Products GmbH
Research & Development
http://www.opensuse.org/
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc