note 64409 added to function.array-values

From: Date: Thu, 13 Apr 2006 19:21:38 +0000
Subject: note 64409 added to function.array-values
Groups: php.notes 
Request: Send a blank email to php-notes+get-108011@lists.php.net to get a copy of this message
In case you want to replace all keys in multiarrays by integers starting at 0, the following function might help. <?php function numerieren($array) { $array_v = array_values($array); $count_v = count($array_v); for ($i=0; $i<$count_v; $i++) if (is_array($array_v[$i])) $array_v[$i] = numerieren($array_v[$i]); return $array_v; } ?> ---- Server IP: 212.124.37.9 Probable Submitter: 84.72.22.72 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array-values.php Edit -- http://master.php.net/note/edit/64409 Del: integrated -- http://master.php.net/note/delete/64409/integrated Del: useless -- http://master.php.net/note/delete/64409/useless Del: bad code -- http://master.php.net/note/delete/64409/bad+code Del: spam -- http://master.php.net/note/delete/64409/spam Del: non-english -- http://master.php.net/note/delete/64409/non-english Del: in docs -- http://master.php.net/note/delete/64409/in+docs Del: other reasons-- http://master.php.net/note/delete/64409 Reject -- http://master.php.net/note/reject/64409 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108011) next »