Multiple return statements in a PHP function
<p>I have the following PHP function</p>

<pre><code>function newUser($username, $password) {
     $checkUsernameAvailablity = check($username);
     if (!$checkUsernameAvailablity)
         {
           return -1;
         } 

         $checkPasswordComplexity = checkpass($password);
         if (!$checkPasswordComplexity)
         {
           return -2
         }

}
</code></pre>

<p>I would like to know if the username is taken and the password is not complex enough, will PHP stop the function after it returns -1 or will it continue and return -2 also. </p>

<p>Thanks in advance,
RayQuang</p>
