Ok I've added this... [code] <?php $dream = $_POST['dreamDetail']; $words = explode(';', $dream); foreach ($words as $word); print_r(str_word_count($word, 1)); ?> [/code] This puts each word in a seperate element in an array. Givs me this out put [code]Array ( [0] => I [1] => dreamt [2] => that [3] => a [4] => fell [5] => off [6] => of [7] => a [8] => cliff [9] => last [10] => night )[/code] Now what I need to do is identify words like cliff or fell and output them along with a definition of what they mean in a dream. I have access to a 350 word dictionary. I guess its a matter of how to search through an array. How?