note 10265 deleted from function.array-splice by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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'}