User-friendly boolean printing in PHP
<p>In the below code 'resAvailability' might be equal to 1 or 0. Is it possible to update this code in such a way that 1 produces 'Yes' and 0 results in 'No'?</p>

<pre><code>   &lt;?php foreach ($result as $row):?&gt;
    &lt;tr&gt;
    &lt;td&gt;&lt;?php echo $row['resAvailability']; ?&gt;&lt;/td&gt;
    &lt;?php endforeach;?&gt;
</code></pre>
