Hi all i'm currently studying php and I don't understand whats wrong with my if else statement :( I keep on getting the wrong variable about put even though my declared string if different.Could anyone give me an idea where im going wrong. Cheers.
$password = strlen('username');
if($password = strlen('password')){
echo 'password is valid';
}
else if ($password = strlen('username')){
echo 'password is invalid';
}
I keep on getting the output 'password is valid'