PHP: Correct use of return in function - use variable or use a number directly?
<p>I am looking to return an integer with a value of 50 or value of 25. Is this the correct way to do this or should I create a variable <code>$temp1=50</code> and <code>$temp2=25</code> and return the variable instead of just returning 50 and 25. </p>

<pre><code>function somefunction($length)
{

    if ($length &gt; 50) 
    {
        return 50;
    } else {
        return 25;
    }
}
</code></pre>

<p>Sorry if duplicate, I looked.</p>
