Hi,
I have tried to search particular sentence in the text file using "strpos" function.
But i am facing an issue while searching. For example if the search sentence is "_VA1" means its filtering not only "_VA1" including "_VA11 & _VA12"
Any idea on this.
thanks.
Search String position issue
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Search String position issue
That is correct. Because _VA11 & _VA12 contains _VA1. The function works like the C strstr function. If you want to have only whole words, you have to search for "_VA1 ".