Re: Is Empty functionality to the Directory Functions

From: Date: Thu, 18 Dec 2008 01:11:27 +0000
Subject: Re: Is Empty functionality to the Directory Functions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-42318@lists.php.net to get a copy of this message
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 olafurw@gmail.com On Wed, Dec 17, 2008 at 10:48 PM, Cristian Rodríguez <crrodriguez@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/ > > >

« previous php.internals (#42318) next »