Function __global->get_lang_member
Definitions
sources/lang.php
- Get what language the given member uses. The language is sent through a mapping to ensure it is in the right format, or dumped if it will not map.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member ID |
Returns
- The language used by the member (null: the language will not map)
- Type: ?LANGUAGE_NAME
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get what language the given member uses. The language is sent through a mapping to ensure it is in the right format, or dumped if it will not map.
*
* @param MEMBER $member_id The member ID
* @return ?LANGUAGE_NAME The language used by the member (null: the language will not map)
*/
function get_lang_member(int $member_id) : ?string
* Get what language the given member uses. The language is sent through a mapping to ensure it is in the right format, or dumped if it will not map.
*
* @param MEMBER $member_id The member ID
* @return ?LANGUAGE_NAME The language used by the member (null: the language will not map)
*/
function get_lang_member(int $member_id) : ?string

