Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

name2id

Usage: int name2id (string username)
Purpose: Returns the member ID of the member specified.
Availability: IPB SDK 0.2

Returns the User ID of the member specified in username. username should contain the username of the member on Invision Power Board.

username can also be an array of usernames. Returned data will keep the structure of the provided array, but will change all usernames to the member id.

If a invalid username is provided FALSE will be returned.

This function can be useful for functions which require a member ID as input, but you only have the member name.

This function is the opposite of id2name.

/* Prints ID = 1 Name = Pita */
echo 'ID = '.$SDK->name2id("Pita").' Name = Pita';
See Also: id2name


User Contributed Notes

There are currently no user contributed notes for this page.

Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net