Re: How can an elephant count for nothing?

From: Date: Fri, 13 Feb 2009 10:17:02 +0000
Subject: Re: How can an elephant count for nothing?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-288206@lists.php.net to get a copy of this message
I guess the main reason for PHP to behave like this is to make life easier for many everyday situations. EXAMPLE: User input via GET or POST - usually string You compare it to some value - int/string or whatever So if a user posts '17' (string) and you compare it to 17 (int), unless you are using ===, PHP won't complain.

« previous php.general (#288206) next »