fetchUser (function)

Last updated: Fri, Jan 13, 2023 7:30 am
Return to Knowledgebase

Purpose

Returns everything in the users table for a given user id

Location

users/helpers/users.php

Version Information

First Introduced v2.5.0

Parameters

# Parameter Data Type Required Description
1 $id int Yes The id of the user you wish to fetch.

Returns

Data Type Description of Returned Data
object Returns the entire row of the users table in an object or false if the user is not found.

Further Documentation:


$data = fetchUser(1);
//returns the entire first row of the users table