If Statement inside or outside
<p>I'm trying to figure out if I need to do this inside the for loop or outside the for loop but I want to check to see its empty or not first.</p>

<pre><code>echo "&lt;ul&gt;";
for($x = 0; $x &lt;= (count($quotesArray)-1); $x++)
{
    echo "&lt;li&gt;".stripslashes($quotesArray[$x]-&gt;quote)."&lt;/li&gt;";
}
echo "&lt;/ul&gt;";
</code></pre>
