note 10265 deleted from function.array-splice by felipe

[email protected]
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'}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.