Pregunta de entrevista de CarltonOne Engagement

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

Respuesta de la entrevista

Anónimo

5 de nov de 2018

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

Pregunta de entrevista en CarltonOne Engagement: if(!(strpos($haystack,$needle)){ } What is wrong with the code ? | Glassdoor