Link Details

Link 101546 thumbnail
User 322500 avatar

By djotto
via otton.org
Published: Aug 07 2008 / 03:21

PHP's weakly-typed (and then some) nature can cause some very unexpected behaviour.
  • 34
  • 0
  • 4343
  • 15

Comments

Add your comment
User 285236 avatar

rkg replied ago:

0 votes Vote down Vote up Reply

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.

User 218789 avatar

eelmore replied ago:

1 votes Vote down Vote up Reply

Hah. Very amusing!

Quite an accurate observation about the most important feature of PHP.

Voted up. Good lawl, Sir.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java