Re: [PHP4BETA] array_splice() RFD
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] array_splice() RFD | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2129@lists.php.net to get a copy of this message | ||
> Which way is more convenient? I'd vote for the second one since it gives you
> more flexibility. It's just that if you wanted to replace the removed values
> with an actual array you'd need to do array_splice($input, 1, 2,
> array($repl)).
I see nothing wrong with having to do that, so my vote goes for #2 as
well.
-Rasmus