Php return boolean
<p>Here is an example of what I am trying to understand:</p>

<pre><code>return (@mysql_query($sql)) ? true:false;
</code></pre>

<p>I want to return either true or false if this line is executed successfully:</p>

<pre><code>$this-&gt;sql-&gt;execute();
</code></pre>

<p>Can someone explain me how this <em>if like</em> thing works and how can I use it with my line?</p>
