Maybe I'm not being clear... I need to do this to determine how long an array will be. Such as this quick example in Java...
char hk[] = {'a', 'b', 'c', 'd'};
System.out.println("Number of elements in array hk: " + hk.length + ".");
Or... In C...
char *hk = "hello world";
(void)fprintf(stdout, "Amount of elements in array hk: %d\n", sizeof(char) * (strlen(hk) + 1));
This way I can traverse through an array of any length without hard-coding in the size.
LxP, thanks, I just read your post after posting mine
Just thought of another question actually. I don't see anything in the help file about instantiating arrays upon declaration.
ex:
Global $array[] = {"element 0", "element 1", "etc"}
Any substitute for that? Or do you have to specify each element?
ex:
Dim $array[3]
$array[0] = "el0"
$array[1] = "el1"
$array[2] = "el2"