[SOLVED] A direct way to get an index from an array?
Is there a direct way to get the index of an element from an array (in this case, all elements in the array are different)? Maybe something like the "indexOf" used in strings?. I've searched, but haven't found anything. It sorta lookin like I'm going to have to loop through the array comparing against the array elements.
Thanks, but it's not sorted
Unfortunately, the array is not sorted. Thanks for the tip anyway... will keep it in mind.
Thanks & have a nice day,