By djotto via otton.org Published: Aug 07 2008 / 03:21
I was sure this generates a warning, but I was wrong. PHP should be doing it at some configurable level of warning, "you are comparing a string (not containing a number) with a number" or something like that.
Hah. Very amusing! Quite an accurate observation about the most important feature of PHP. Voted up. Good lawl, Sir.
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Comments
rkg replied ago:
I was sure this generates a warning, but I was wrong. PHP should be doing it at some configurable level of warning, "you are comparing a string (not containing a number) with a number" or something like that.
eelmore replied ago:
Hah. Very amusing!
Quite an accurate observation about the most important feature of PHP.
Voted up. Good lawl, Sir.
Voters For This Link (35)
Voters Against This Link (0)