strpos($needle,$hey_stack); returns the exact the position of the the needle in the heystack.
The powerful/easy-to-use if(strpos(‘hey’,’hey world’)){//do something}else{//do something else} feature of PHP is also a major weakness if you do not fully understand how if statements in PHP work.
Continue reading “PHP strpos function not working – It does, just not the way you expect”