 <p>my bad, I was doing it wrong!!</p> <pre><code> &lt;?php $risk_numbers = array( '2' =&gt; '20', '3' =&gt; '23', '10' =&gt; '22', '11' =&gt; '24', '12' =&gt; '25', '13' =&gt; '27', '21' =&gt; '26', ); foreach($risk_numbers as $description =&gt; $other) { if($values[$description]['value'] == 'No'){echo $values[$description]['description'].'&lt;br/&gt;';} if($values[$other]['label'] == 'Other' &amp;&amp; $values[$other]['value'] != ''){echo $values[$other]['value']; echo '&lt;br/&gt;';} } ?&gt; </code></pre>