Answer the question
In order to leave comments, you need to log in
How to iterate logins from an array in PHP?
Here is the login verification code:
if ($date['login'] != $loginsp) {
$errors[] = 'Ошибка: Не верный логин!';
}
Answer the question
In order to leave comments, you need to log in
Use the in_array function
if (!in_array($date['login'], $loginsp)) {
$errors[] = 'Ошибка: Не верный логин!';
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question