Is this a bug in PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4750781/php-array-behaving-strangely-with-key-value-07-08">php array behaving strangely with key value 07 &amp; 08</a>  </p>
</blockquote>



<p>I've found something weird in PHP, if I use numeric arrays the 8th array gets ignored, here when I put 'Cherry' into $fruit[08], php seams to step over it.</p>

<p>What's going on ? Is this a bug or something else.</p>

<pre><code>&lt;pre&gt;
&lt;?php

$fruit[01] = "Apples";
$fruit[02] = "Pears";
$fruit[03] = "Bananas";
$fruit[04] = "Grape";
$fruit[05] = "Orange";
$fruit[06] = "Peach";
$fruit[07] = "Lemon";
$fruit[08] = "Cherry";
$fruit[09] = "Mango";

print_r($fruit);

?&gt;
&lt;/pre&gt;
</code></pre>

<p>Output:</p>

<pre><code>Array
(
    [1] =&gt; Apples
    [2] =&gt; Pears
    [3] =&gt; Bananas
    [4] =&gt; Grape
    [5] =&gt; Orange
    [6] =&gt; Peach
    [7] =&gt; Lemon
    [0] =&gt; Mango
)
</code></pre>
