note 40484 added to ref.array

From: Date: Fri, 05 Mar 2004 01:14:13 +0000
Subject: note 40484 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-66283@lists.php.net to get a copy of this message
How can I take an array like this: $arr['string1'] = "value1" $arr['string2'] = "value2" $arr['string3'] = "value3" And turn it into an array like this: $arr[0] = "value1" $arr[1] = "value2" $arr[2] = "value3" In other words: is there any function to change string keys into integer keys? ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40484 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40484&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40484&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66283) next »