On a Day Like Today program
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: 

The php array:

    $anniversary = array(
    '1/01'	=>array(
    '1813'	=>'something here',
    '1824'	=>'something here',
    '2001'	=>'something here',
    
    .
    .
    .
    '31/12'	=>	array(
    '-450'	=>'something here',
    '-168'	=>'something here',
    '1942'	=>'something here',
    	)
    );

And the program is:

    <?php
    include 'array.php';
    $today =  date('d/m');
    foreach ($anniversary[$today] as $hdate => $event) {
    $table[0][] = $hdate;
    $table[0][] = $event;
    $counter++;
    }
    do
    {
    $random = rand(0,$counter*3);
    }
    while($random % 2 == 0);
    echo '<h2>'.$table[0][$random-1].": ".'</h2>'.'<p>'.$table[0][$random].'</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? Thanks you in advance.

On a Day Like Today program
===

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: 

The php array:

    $anniversary = array(
    '1/01'	=>array(
    '1813'	=>'something here',
    '1824'	=>'something here',
    '2001'	=>'something here',
    
    .
    .
    .
    '31/12'	=>	array(
    '-450'	=>'something here',
    '-168'	=>'something here',
    '1942'	=>'something here',
    	)
    );

And the program is:

    <?php
    include 'array.php';
    $today =  date('d/m');
    foreach ($anniversary[$today] as $hdate => $event) {
    $table[0][] = $hdate;
    $table[0][] = $event;
    $counter++;
    }
    do
    {
    $random = rand(0,$counter*3);
    }
    while($random % 2 == 0);
    echo '<h2>'.$table[0][$random-1].": ".'</h2>'.'<p>'.$table[0][$random].'</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? Thanks you in advance.
