How can i have that code right ?
if (!preg_match($ibanValidation,$iban)&& !preg_match($bicValidation,$bic) || (!preg_match($kartennumerValidation,$kartennumer)&&!preg_match($cvvValidation,$cvv))){
do something;
}
It must to make such a thing like:
if(!preg_match($ibanValidation,$iban) AND (!preg_match($bicValidation,$bic) OR
if(!preg_match($kartennumerValidation,$kartennumer) AND (!preg_match($cvvValidation,$cvv){
do something;
}
But that all in one statemant not in two!
Aucun commentaire:
Enregistrer un commentaire