ich habe vergessen zu schreiben, dass es sich um eine binäre suche handeln soll...
Das steht bereits im Titel.
Hint: "Looking for a word or phrase on a webpage? Hold down the Ctrl and hit F at the same time. Type in the word or phrase, and let the "Find" feature do the looking for you!"
binary search wäre z.B. ein Versuch - in der array_search()-Doku gibts mehrere Beispiele.