Re: intval

From: Date: Sat, 09 May 2009 14:32:47 +0000
Subject: Re: intval
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-292419@lists.php.net to get a copy of this message
thanks for the reply... just happened to see http://php.net/ternary which explains the above result i want to explicitly type cast all the numbers passed via post (by default they are strings) is_numeric() is a option, but it will not be possible to differentiate between int and float. $_POST['month'] !== (string)(int)$_POST['month'] this is exactly what i want... but wont this take up memory when used with array_walk_recursive() ?

« previous php.general (#292419) next »