Posted by Chung Leong on 02/23/06 02:29
The function you need is in_array() although an associative array would be more efficient. E.g. $good_hash = array( 'good' => true, 'better' => true, 'best' => true, ... ); if(!array_key_exists(strtolower($word), $good_word)) { ... }
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming