My first post here, sorry if this has been covered before:
Why does including a leading zero in an array index cause
problems? For example, the output of this script:
$x = array(a,b,c,d,e,f,g,h,i,j);
echo $x[0];
echo $x[1];
echo $x[2];
echo $x[3];
echo $x[4];
echo $x[5];
echo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oh it's probably because your numbers are being interpreted as octal.
Either use the array as '00' .. '09' or just 0 .. 9. 00 .. 09 is valid for
00 to 07 but there is no such thing as 08 and 09 in octal.
Joshua b. Jore
Joshua B. Jore wrote:
Oh it's probably because your numbers are being interpreted as octal.
Either use the array as '00' .. '09' or just 0 .. 9. 00 .. 09 is valid for
00 to 07 but there is no such thing as 08 and 09 in octal.
Ok, thanks.
--
Kent Briggs, [EMAIL PROTECTED]
Briggs
3 matches
Mail list logo