note 9207 deleted from function.array-splice by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: info at borderblue dot com 

----

note that unset() works well for associative arrays, but if you have

$blah = array("a","b","c","d");

and you unset($blah[2]), then the other
elements will not shift, i.e., you'll still have $blah[0], $blah[1], and $blah[3].  If you need things to shift, use

array_splice($blah,2,1);
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.