RE: [PHP] arrays, loops, vars and props
| From: | Chris W. Parker | Date: | Wed, 10 Mar 2004 20:41:17 +0000 |
| Subject: | RE: [PHP] arrays, loops, vars and props | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180048@lists.php.net to get a copy of this message | ||
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.