Re: Am I supposed to be using SPL?

From: Date: Thu, 01 Jun 2006 08:52:03 +0000
Subject: Re: Am I supposed to be using SPL?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-237179@lists.php.net to get a copy of this message
This one time, at band camp, "D. Dante Lorenso" <dante@vocalspace.com> wrote: > Is SPL meant to be used? If so, is it experimental? Is it documented? > Should I stay away from SPL for production code? What's the official word? Officially SPL is part of PHP. It provides a standard interface for iterating over aggregate objects, eg: array, directory listing, xml, etc... try{ foreach ( new DirectoryIterator('./') as $Item ) { echo $Item.'<br />'; } } catch(Exception $e){ echo 'No files Found!<br />'; } Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote."

« previous php.general (#237179) next »