RE: [PHP-DEV] array_init() opinions?

2001-10-22 Thread Chris Newbill
Why not move the syntax to this? array_init( array/mixed indexes, mixed value[, int num]) So then I could do $a = array_init(array("key1", "key2", "key3"), "apple"); or $a = array_init(5, "apple", 6); -Chris -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Mo

Re: [PHP-DEV] array_init() opinions?

2001-10-22 Thread Wez Furlong
On 22/10/01, "Rasmus Lerdorf" <[EMAIL PROTECTED]> 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