I have a function right here:
function loginForm($post){
$username = c($post['username']);
$password = md5(c($post['password']));
if($this->login($username,$password))
$this->setCookies($post);
}
As you can see the username and password are returned from a function called
c() (which is just $mysqli->real_escape_string()).
Now, as you can see in the password field, there are 2 functions.
$password = md5(c($post['password']));
My question is, will the c() function run first, or the md5 function will run first? I'm almost sure the c() function is running first, but I'm not sure.
c runs first.
Because you can rewrite it to:
$temp = c($post['password']);
$password = md5($temp);
You can not rewrite it so that md5 is called first.
The c function will run first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With