php - shortest function return
<p>Hi 
Is there any shorter way for a function to return true if parameter = 10 ?
I have tried searching on the internet but I could not find any answers - most probably because I am not aware of the keywords to search for.</p>

<p>What I have done is</p>

<pre><code>function isTen($a) {
if ($a == 10) return true;
return false
}
</code></pre>

<p>Is this the shortest code one can get to in PHP ? 
If there is somewhere to read up on this.. please let me know.  Right now I feel like I'm looking for a needle in a haystack :(</p>
