CarltonOne Engagement interview question

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

Interview Answer

Anonymous

Nov 5, 2018

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