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]
Synopsis[edit]
public static JUserHelper::getUserId ($username)
Parameter | Type | Default | Description |
---|---|---|---|
$username | string | The username to search on |
Returns[edit]
int The user id or 0 if not found
Defined in[edit]
libraries/joomla/user/helper.php (line 268)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JUserHelper::getUserId
Examples[edit]
<CodeExamplesForm />