PHP Ternary Operator not working for this code
<p>i would like to use Ternary Operator for the below code..</p>

<pre><code>&lt;?php 
if($users['active'] == 1 ) 
{ 
    echo 'Yes'; 
} 
else 
{ 
    echo 'No'; 
} 
?&gt;
</code></pre>

<p>i tried using this code and it does not work..</p>

<pre><code>&lt;?php ($users['active'] == 1) ? echo "Yes" : echo "No";  ?&gt;
</code></pre>

<p>what is wrong?</p>
