> For the complete documentation index, see [llms.txt](https://devguide.e107.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devguide.e107.org/classes-and-methods/user-data.md).

# User Data

{% hint style="danger" %}
**Please note:** This page is under construction and has not been finished yet.
{% endhint %}

&#x20;Returns an array of user data for a specific user. Input can be either a specific ID (`$user_id`) or use `USERID` for the currently logged in user.

```php
e107::user($user_id);

$userData = e107::user(USERID); // Example - currently logged in user. 
$userData = e107::user(5); // Example  User ID #5.
```

{% hint style="info" %}
todo: add example output
{% endhint %}
