Tuesday, March 5, 2013 [Tweets] [Favorites]

Bypassing PHP strcmp()

Daniel Regalado reports on how PHP’s strcmp() returns NULL when comparing a string with a non-string, and how if your code uses == (which sees NULL as 0) instead of === it will erroneously think the two are equal (via Colin Barrett).


Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment