note 94701 deleted from function.intval by danbrown

From: Date: Thu, 19 Nov 2009 16:20:50 +0000
Subject: note 94701 deleted from function.intval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163077@lists.php.net to get a copy of this message
Note Submitter: monotol at gmail dot com dot user dot co dot uk ---- @spoon_reloaded at gmail dot com Actually, it's not undocumented, as you can see if you look at the 6th example above. In fact, there is no need to enter '0' as the second argument, for PHP will automatically assume the base of a number if you enter it in the right format; e.g. numbers with leading zeros are converted to base 8. This is a feature of PHP in general, which is why you shouldn't use leading zeros when entering numbers you want to use in base 10.

« previous php.notes (#163077) next »