How to make this code more efficient instead of having so many elseif statements?
<p>Instead of this:</p>

<pre><code>if($today &gt;= $dateOne &amp;&amp; $dateOne != '0000-00-00')
    {
    run some code
    }
elseif($today &gt;= $dateTwo &amp;&amp; $dateTwo != '0000-00-00')
    {
    run some code
    }
elseif($today &gt;= $dateThree &amp;&amp; $dateThree != '0000-00-00')
    {
    run some code
    }
elseif($today &gt;= $dateFour &amp;&amp; $dateFour != '0000-00-00')
    {
    run some code
    }
else
    {
    run this code
    }
</code></pre>

<p>...which goes up to <code>$dateEleven</code>, is there a better why to do this? I figure there has to be a better way than to have all of these <code>elseif</code> statements.</p>
