Array question

Is there a function that searcher for a value in an array? And if it finds that the value is in the array it returns the index of where the value was finded?