|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-18 10:19 UTC] mgf@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
Description: ------------ Creating an array with hardcoded number values beginning with a number 0 does not save anything beyond the 0. This is when done outside of any quotes, single or double. It works fine when quotes are added to these numbers. Reproduce code: --------------- $a=array( 1980, 0891 ); print_r($a); Expected result: ---------------- Array ( [0] => 1980 [1] => 0891 ) Actual result: -------------- Array ( [0] => 1980 [1] => 0 )