title: On a Day Like Today program
body: <p>I have made a program that finds the current date and then do a search in a php array and shows what happens On a Day Like Today. The only problem is that the program can't read the months 10-12 correctly. Here is my code: </p>
  
  <p>The php array:</p>
  
  <pre><code>$anniversary = array(
     '1/01' =&gt; array (
         '1813' =&gt; 'something here',
         '1824' =&gt; 'something here',
         '2001' =&gt; 'something here'
      ),
      '31/12' =&gt; array(
         '-450' =&gt; 'something here',
         '-168' =&gt; 'something here',
         '1942' =&gt; 'something here'
      )
  );
  </code></pre>
  
  <p>And the program is:</p>
  
  <pre><code>&lt;?php
  include 'array.php';
  $today = date('d/m');
  
  foreach ($anniversary[$today] as $hdate =&gt; $event) {
      $table[0][] = $hdate;
      $table[0][] = $event;
      $counter++;
  }
  
  do {
      $random = rand(0, $counter * 3);
  } while($random % 2 == 0);
  
  echo '&lt;h2&gt;'.$table[0][$random-1].": ".'&lt;/h2&gt;'.
       '&lt;p&gt;'.$table[0][$random].'&lt;/p&gt;';
  ?&gt;
  </code></pre>
  
  <p>The Problem is that the months 01-09 finds out and shows correctly and the months 10-12 can't finds because confuse the month with the day.
  Any solutions? </p>