How the function will behave in case of difference in no. of arguments passed and no. of arguments defined in the function definition in PHP?
<p>I'm a newbie to PHP. I've a following function call:</p>

<pre><code>UpdateUserTestStatus($user_id, $user_test['test_user_test_id'], $user_test['test_user_start_time'], $user_test_time);
</code></pre>

<p>The definition of function is as follows:</p>

<pre><code>function UpdateUserTestStatus($user_id, $test_id, $user_test_start_time, $user_test_time, $test_pack_id) { 
        if($user_id!='' &amp;&amp; $test_id!='') {
            $sql  = " UPDATE ".TBL_TESTS_USERS." SET test_user_status='present', ";
            $sql .= " test_user_start_time=".$user_test_start_time.", test_user_time_used=".$user_test_time;
            $sql .= " WHERE test_user_user_id='".$user_id."' AND test_user_test_id=".$test_id;
            $sql .= " AND test_pack_id='".$test_pack_id."' ";

            $this-&gt;mDb-&gt;Query($sql);

            return true;
        } else
            return false;
    }
</code></pre>

<p>So my question is, does that work in PHP having different no. of arguments in function call and having different no. of arguments present in the function definition? Please guide me in this issue. Thanks in Advance. </p>
