Re: re-keying an array

From: Date: Fri, 30 Apr 2004 03:56:45 +0000
Subject: Re: re-keying an array
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-185001@lists.php.net to get a copy of this message
On 30/04/2004, at 1:47 PM, Curt Zirzow wrote:
foreach(array_slice($filenames, 0, 2) as $filename) { $files[] = "path/to/" . $filelname; }
Ahhhhhh array_slice() is EXACTLY what I was looking for :) --- Justin French http://indent.com.au

« previous php.general (#185001) next »