note 94701 added to function.intval

From: Date: Thu, 19 Nov 2009 11:33:06 +0000
Subject: note 94701 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-163071@lists.php.net to get a copy of this message
@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. ---- Server IP: 92.48.74.199 Probable Submitter: 93.96.240.227 ---- Manual Page -- http://www.php.net/manual/en/function.intval.php Edit -- https://master.php.net/note/edit/94701 Del: integrated -- https://master.php.net/note/delete/94701/integrated Del: useless -- https://master.php.net/note/delete/94701/useless Del: bad code -- https://master.php.net/note/delete/94701/bad+code Del: spam -- https://master.php.net/note/delete/94701/spam Del: non-english -- https://master.php.net/note/delete/94701/non-english Del: in docs -- https://master.php.net/note/delete/94701/in+docs Del: other reasons-- https://master.php.net/note/delete/94701 Reject -- https://master.php.net/note/reject/94701 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163071) next »