Translations:Manual:User.php/15/en

Get the user's ID. Returns 0 if the user is anonymous or nonexistent.