note 130282 added to function.intval
| From: | guy.sartorelli@silverstripe.com | Date: | Tue, 06 May 2025 01:21:44 +0000 |
| Subject: | note 130282 added to function.intval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222127@lists.php.net to get a copy of this message | ||
Instead of
intval($value, 8);, you can use octdec($value); which gives the
same result and is more declarative.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 14.1.35.58)
----
Manual Page -- https://php.net/manual/en/function.intval.php
Edit -- https://main.php.net/note/edit/130282
Del: integrated -- https://main.php.net/note/delete/130282/integrated
Del: useless -- https://main.php.net/note/delete/130282/useless
Del: bad code -- https://main.php.net/note/delete/130282/bad+code
Del: spam -- https://main.php.net/note/delete/130282/spam
Del: non-english -- https://main.php.net/note/delete/130282/non-english
Del: in docs -- https://main.php.net/note/delete/130282/in+docs
Del: other reasons-- https://main.php.net/note/delete/130282
Reject -- https://main.php.net/note/reject/130282
Search -- https://main.php.net/manage/user-notes.php