RE: [PHP] arrays, loops, vars and props

From: Date: Wed, 10 Mar 2004 20:50:46 +0000
Subject: RE: [PHP] arrays, loops, vars and props
Groups: php.general 
Request: Send a blank email to php-general+get-180050@lists.php.net to get a copy of this message
Im fully aware of diffrent ways of doing it, my question is, in the 2 ways i mentioned, which is more efficient. Ill take the question to the internals list. Thanks for your responses. Jason "Chris W. Parker" <cparker@swatgear.com> wrote: > > Luis Mirabal <mailto:mirabal@adinet.com.uy> > on Wednesday, March 10, 2004 12:30 PM said: > > > i would do it this way > > > > function MyClass() > > { > > $this->myArray = range(0, 99); > > } > > guys (luis), guys (mike), let's not try to one-up each other... > > ... > > ... > > but i would take it a step further. :P > > function MyClass($limit = 100) > { > $this->myArray = range(0, $limit-1); > } > > > > c. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#180050) next »