|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-05 20:01 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ When placing a zero in front of a number PHP will convert it automatically to an integer value, but it becomes a zero rather than the number after the zero. Reproduce code: --------------- <?php $a = intval(08); $b = intval('08'); var_dump($a,$b,08); ?> Expected result: ---------------- int(8) int(8) int(8) Actual result: -------------- int(0) int(8) int(0)