note 10265 deleted from function.array-splice by felipe

From: Date: Sat, 29 Dec 2007 19:47:16 +0000
Subject: note 10265 deleted from function.array-splice by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134183@lists.php.net to get a copy of this message
Note Submitter: brissaille at yahoo dot com Reason: 5 ---- Pay attention, if the keys of your array are integer, array_splice will modify them. For example: $t=array('5'=>'Albator', '7'=>'Goldorak', 21=>'Candy'); array_splice($t,0,0) gives you the follwing result: $t=array {[0]=>'Albator', [1]=>'Goldorak', [2]=>'Candy'}

« previous php.notes (#134183) next »