Page 1 of 1

Changing array keys

Posted: Thu Oct 19, 2006 10:01 am
by impulse()
I have been left with an array like the following:
Array ( [0] => [2] => stephen [4] => 21 [6] => [8] => kingkong [10] => 1000 [12] => )
after using

Code: Select all

strip_tags
. Which is as much use as a dead, uncooked horse to me. I have covered changing key values in the past but it's as clear as being in infant school at the moment. Can somebody show me the light please?

Stephen,

Posted: Thu Oct 19, 2006 10:04 am
by feyd
desired output?

array_values() may be of interest.

Posted: Thu Oct 19, 2006 10:09 am
by impulse()
That was of great interest.