Domanda di colloquio di CarltonOne Engagement

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

Risposta di colloquio

Anonimo

5 nov 2018

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