Saving boolean return value into variable?
<p>Is there a way to save a boolean true/false value in a function to a variable?</p>

<pre><code>function check() {
    if(1 = 1) {
        return false;
    }
}
$status = check();
if($status === false) {
    echo "sign in please";
}
</code></pre>

<p>As of now <code>$status</code> comes out to be null. I don't like having to use <code>if(check() === false) {}</code> since a lot of my function have a lot of arguments. And setting <code>$status</code> within the function would defeat the purpose of a universal function that can be used for multiple variables.</p>

<p>How do you guys handle this?</p>

<p>EDIT: I apologize, something else in my code was causing it to be null. Tried to make a test (above code) and when it failed, I thought it was a worthy question :P</p>
