Answer the question
In order to leave comments, you need to log in
How to change the function call?
Hello everyone, there is a function that displays a value from an IPB 3.4.x array
public function getUser($param)
{
$IPSMember = new IPS();
$IPSMember->init();
$member = $IPSMember->getMember();
return $member[$param];
}
$member->getUser('member_id');
$member = \IPS\Member::loggedIn();
echo $member->member_id;
public function getUser($param)
{
$member = \IPS\Member::loggedIn();
return $member->[$param];//Пример
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question