JUserHelper::getUserId
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JUserHelper::getUserId[edit]
Description[edit]
Returns userid if a user exists.
Template:Description:JUserHelper::getUserId [Edit Descripton]
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[edit]
- JUserHelper::getUserId source code on BitBucket
- Class JUserHelper
- Subpackage User
- Other versions of JUserHelper::getUserId
Template:SeeAlso:JUserHelper::getUserId [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />