note 69779 deleted from ref.array by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: kthejoker - google mail 

----

re jeremyquintion:

your solution is array_merge(), which will reindex a numeric array.

So if you have

$array[0] = "something";
$array[1] = "something else";
$array[2] = "yet another";

unset($array[1]);
array_merge($array);

the result is

$array[0] = "something";
$array[1] = "yet another";

and then you can use a for loop accordingly. Obviously this isn't ideal if you want to maintain key association.
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.