API17

API17:JUserHelper::getUserId

From Joomla! Documentation

Joomla 11.1 JUserHelper::getUserId

Description

Returns userid if a user exists.


public static function getUserId ($username)
Parameter Type Default Description
$username string The username to search on
  • Returns int The user id or 0 if not found
  • Defined on line 271 of libraries/joomla/user/helper.php
  • Referenced by

See also


User contributed notes

Code Examples