R
Randell D.
Folks,
Here's my problem:
I am createing an array in a file using the reslut of some PHP and MySQL
processing. An example of my array would be
examlpe['a']="example one";
examlpe['b']="example two";
examlpe['c']="example three";
examlpe['d']="example four";
examlpe['e']="example five";
examlpe['f']="example six";
The array key (or index) can have different values (always unique though).
I want to be able to reference/read, for example, the second and fourth
element in the array - but since my array keys/indexes are dynamic, my
standard script will only know the array is called 'example'...
So... using the example above, I would not know that the first element in
the array is element['a'].
My Question: Is there a method that I can use to reference any part of the
array, without knowing the elements key?
If not, is there a method to convert the array to have numeric keys?
Thanks,
Randell D.
Here's my problem:
I am createing an array in a file using the reslut of some PHP and MySQL
processing. An example of my array would be
examlpe['a']="example one";
examlpe['b']="example two";
examlpe['c']="example three";
examlpe['d']="example four";
examlpe['e']="example five";
examlpe['f']="example six";
The array key (or index) can have different values (always unique though).
I want to be able to reference/read, for example, the second and fourth
element in the array - but since my array keys/indexes are dynamic, my
standard script will only know the array is called 'example'...
So... using the example above, I would not know that the first element in
the array is element['a'].
My Question: Is there a method that I can use to reference any part of the
array, without knowing the elements key?
If not, is there a method to convert the array to have numeric keys?
Thanks,
Randell D.