PHP Simple Spell Checker (Binary Search help)
<p>I need help with performing a binary search with a search term ($searchTerm) and comparing it to a dictionary ($dictionary).</p>

<p>Basically, it reads a dictionary file into an array. The user inputs some words, that string becomes $checkMe. I do an explode function and it turns into $explodedCheckMe. I pass each term in $checkMe to binarySearch as $searchTerm (Okay, my code is confusing). I think my logic is sound, but my syntax isn't ...</p>

<p>I've been using this a lot: <a href="http://us3.php.net/manual/en/function.strcasecmp.php" rel="nofollow">http://us3.php.net/manual/en/function.strcasecmp.php</a></p>

<p>here is my code: paste2.org/p/457232</p>
