Topic: Multidimensional Arrays (HELP)
Here is a code example of a multidimensional array:
array(
'Foo'=>array(
'foo1',
'foo2',=>array(
'foo1',
'foo2',
'foo3'),
'foo3' ),
'Foo'=>array(
'foo1',
'foo2',
'foo' ),
);
Is it possible to remove the text keys and replace them with descending numbers like below?
array(
0=>array(
'foo1',
'foo2',=>array(
'foo1',
'foo2',
'foo3'),
'foo3' ),
1=>array(
'foo1',
'foo2',
'foo' ),
);
The reason for this is I want to input only the number in the database and then later match it up to the original array and retrieve the keys. This way I can use less space in the database.
I'm also thinking that the database size wouldn't increase much with using text instead of numbers. Any opinions?