note 98340 deleted from mongo.tutorial by bjori

From: Date: Sat, 01 Sep 2012 15:28:20 +0000
Subject: note 98340 deleted from mongo.tutorial by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190401@lists.php.net to get a copy of this message
Note Submitter: Soldair ---- please note that if you need to re-index a numeric array after and unset by offset and preserve order array_merge with only one argument will output an array keyed sequentially <?php $arr = array(1,2,3,4,5); unset($arr[2]); var_dump($arr); $arr = array_merge($arr); var_dump($arr); ?> --output-- array(4) { [0]=> int(1) [1]=> int(2) [3]=> int(4) [4]=> int(5) } array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(4) [3]=> int(5) }

« previous php.notes (#190401) next »