set of users, so $val is a user, but than you expect $key to be a field name!?!
If you want to unset the password for each user, do something like
foreach ($users as &$user) {
unset($user['password']);
}
btw it isn't work too on my case
Обсуждают сегодня