Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 363 Bytes

user_exists.md

File metadata and controls

14 lines (12 loc) · 363 Bytes

user_exists()

Checks if the specified user exists

user_exists($criteria = null)

  • $criteria(string|integer|array) - User id, username or an array.
if (user_exists(['email'=>'[email protected]'])) {
    // The user with the specified email exists
}
if (user_exists(['username'=>'manager'])) {
    // The user with the specified username exists
}