Yes the SPL directory listing has more functionality but not the one i
am talking about. It's not something crucial but useful while
iterating through directories.

Oh and I should to sit down over the holidays and write examples for
the SPL Directory functions and send over to the documentation team.

Ólafur Waage
olaf...@gmail.com

On Wed, Dec 17, 2008 at 10:48 PM, Cristian Rodríguez
<crrodrig...@suse.de> wrote:
> Ó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/
>
>
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to