How can you get 1
# 2 çıkış olarak? Strong>
#1
Ben bu kodu koştum
echo validate_email ( $email );
echo validate_password ( $password );
echo validate_username ( $username );
Ben olsun
111
her şeyin tamam olduğu anlamına gelir.
#2
Ben bu kodu çalıştırın
function validate ( $email, $password, $username ) {
if ( (validate_email ( $email ) == 1)
AND (validate_password ( $password ) == 1)
AND (validate_username ( $username ) == 1 ) )
return 1;
}
echo validate ($email, $password, $username );
Ben olsunnothing as an ouput.
I tried to fix the problem by changing AND
to &&
but the same output remains.
The output should be 1
.