|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-18 15:03 UTC] cataphract@php.net
-Status: Open
+Status: Bogus
[2011-10-18 15:03 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ leading zeros used in arrays gives problems . Test script: --------------- <?php $a="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"; $array_alphabet = array(); $array_alphabet = explode(",",$a); echo $array_alphabet[09]; //gives me the first element instead of the tenth, $array_alphabet[9] works fine ?> Expected result: ---------------- echo $array_alphabet[09]; expected to give me 'j' Actual result: -------------- but is gives me 'a'