note 17689 added to function.array-values

From: Date: Wed, 19 Dec 2001 17:56:34 +0000
Subject: note 17689 added to function.array-values
Groups: php.notes 
Request: Send a blank email to php-notes+get-23340@lists.php.net to get a copy of this message
If you have a numerically indexed array with some keys missing, ie 1, 2, 4, 5 and you want to reindex it so it's 1,2,3,4 *without changing the positions of the values* (ie sort()) then you can use this function to do it. -- http://www.php.net/manual/en/function.array-values.php http://master.php.net/manage/user-notes.php?action=edit+17689 http://master.php.net/manage/user-notes.php?action=delete+17689 http://master.php.net/manage/user-notes.php?action=reject+17689

« previous php.notes (#23340) next »