Re: array_init() opinions?
| From: | Wez Furlong | Date: | Mon, 22 Oct 2001 22:29:41 +0000 |
| Subject: | Re: array_init() opinions? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68740@lists.php.net to get a copy of this message | ||
On 22/10/01, "Rasmus Lerdorf" <rasmus@php.net> wrote:
> That is, you tell it which index to start at, how many elements you want
> in the array and what the initialization value should be.
>
> $a = array_init(5,6,'banana');
> Anybody see a better interface to a function like this?
Sounds good, but I think array_fill might be a bit more descriptive about
what the function does?
--Wez.