note 64409 deleted from function.array-values by crell

From: Date: Tue, 12 Apr 2022 01:04:13 +0000
Subject: note 64409 deleted from function.array-values by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218179@lists.php.net to get a copy of this message
Note Submitter: wizglins at gmx dot ch ---- 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; } ?>

« previous php.notes (#218179) next »