Hi there,
I've got a text file - short amount of it listed below:
if
then
and
why
how
hi
where
i
am
Now in my script it reads it as a file then explodes it into an array - with the seperator being "\n".
That works fine.
However, when I check a word to see if it exists in the array of words above, it doesn't work.
array_search('hi', $this->WordList)
Now that says it doesn't exist in the array (yet it does). However, if I do this:
array_search('am', $this->WordList)
(last word in the array) - it works fine.
Any suggestions?
Thanks,
Chris Evans