CarltonOne Engagement interview question

if(!(strpos($haystack,$needle)){ } What is wrong with the code ?

Interview Answer

Anonymous

5 Nov 2018

It should be compared with false. i.e. strpos($haystack,$needle) == false