Why does this very simple array iteration not work?
<p>I have the following array</p>

<pre><code> Array ( [0] =&gt; Please enter address line 1 
          [1] =&gt; Please tell us your first name 
          [2] =&gt; Please tell us your last name 
          [3] =&gt; Please tell us your email 
          [4] =&gt; You must tell us one phone number 
          [5] =&gt; Please tell us second applicants title 
          [6] =&gt; Please tell us second applicants first name 
          [7] =&gt; Please tell us second applicants last name )
</code></pre>

<p>I am looping through it as follows 
                <code>foreach($error_hash as  $value) 
                    {
                echo "error &lt;li&gt; $value &lt;li/&gt;";
                }</code> </p>

<p>Annoyingly I keep picking up blank lines   </p>

<p><li> Please enter address line 1 </li>
<li> error 
<li> Please tell us your first name </li> 
<li> error </li></p>

<p><li> ect ....... </li> </p>

<p>Any input would be great</p>
