getRank

(/rs/public/functions.php)

getRank -- Member's rank as a string

Description

string getRank ($pin, $rank_type = 'abbr')

This function returns the rank of a current member as either an abbreviation or full text. $pin is the member's id in the roster, and $rank_type should be either "abbr" or "full".

This function returns false on failure.

Examples

getRank (1) /* Returns the rank of member with pin 1 as an abbreviation */
getRank (1, "full") /* Returns the rank of member with pin 1 as full text */
getRank (0) /* Returns false */
getRank (1, "foo") /* Returns false */

Related Functions

rank2string

Dependencies

None.

Function Index