# 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 %}
