$user = $_POST['login'];
$password = $_POST ['password'];
$login = [$user => $password];
$login_list = ['pf_1' => ['admin' => '123'],
'pf_2' => ['adminn' => '852456'],
'pf_3' => ['cxinval' => '654258'],
'pf_4' => ['russia' => '233223'],
'pf_5' => ['itproger' => '0000']];
foreach($login_list as $value){
foreach($value as $k => $val){
if($k && $val === $login){
echo 'Вход';
}else{
echo 'Входа нет!';
}
}
}