I'm looking for a function like in-array for PHP4. I use PHP3 and I have to look for a word in an array or a string. Is There something can help me?
http://www.php.net/manual/en/function.in-array.php for arrays and http://www.php.net/manual/en/function.ereg.php for strings. The Manual is always the best place to look 🙂
Nick
Of the first one you mentioned, but the second could well help. Good luck
I think you can use this
strstr($yourstring,$yourword)
Here $yourstring is the string in which you are looking and $yourword is what you want to find in the string
Hope this may help you
Chanderjit