Brent, et al -- ...and then Brent Baisley said... % % I had to do something like this not to long ago. Luckily it hit me that % I shouldn't be changing keys, you don't do it in a database, so you % really shouldn't do it in an array.
Hmmm... Good point.
% I ended up adding a "column" to my array that contained the name. Then I
% didn't need to change keys and it worked just as well, and easier.
Can you show me how? Currently I have
Array
(
[a1] => Array
(
[k1] => value1
[k2] => value2
)
[a2] => Array
(
[k1] => value1
[k2] => value2
)
)
and now I'll want to add a 'name' thingie (I daren't call it a column :-)
so that I can change it at will ... but where and how do I add it?
Thanks & TIA & HAND
:-D
--
David T-G * There is too much animal courage in
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg93996/pgp00000.pgp
Description: PGP signature

