If you know there won't be any duplicates in the given array, you could do something like this.$myArrayIdx[%value]For example,$myArray[0] = 44;$myArrayIdx[44] = 0;$myArray[1] = 45;$myArrayIdx[45] = 1;$myArray[2] = 77;$myArrayIdx[77] = 2;$myArray[3] = 99;$myArrayIdx[99] = 3;But other than that, I don't believe there is any good way to do this.
Another way would be to loop through the array until you find the value (assuming there are no duplicates)Edit: oops, in after OP Edited his post I guess.