note 10265 added to array_splice
| From: | brissaille at yahoo dot com | Date: | Thu, 21 Dec 2000 16:31:33 +0000 |
| Subject: | note 10265 added to array_splice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8996@lists.php.net to get a copy of this message | ||
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'}
http://www.php.net/manual/function.array-splice.php