vendredi 28 août 2015

am I using strpos correctly!? Not getting the results

I've got a php while loop going (creating a search script), and I'm looking to match up values to see which items should go into the search results. strpos seems to work just fine until all of a sudden when it refuses to work correctly on this particular spot...

if (strpos('a', 'a')) {
 continue;
}

Shouldn't that NOT reach continue? "a" does contains "a" after all, but in my script it's reaching the continue.

Aucun commentaire:

Enregistrer un commentaire