PMA\libraries\DatabaseInterface::getCurrentUserAndHost PHP Method

getCurrentUserAndHost() public method

Get the current user and host
public getCurrentUserAndHost ( ) : array
return array array of username and hostname
    public function getCurrentUserAndHost()
    {
        if (count($this->_current_user) == 0) {
            $user = $this->fetchValue("SELECT CURRENT_USER();");
            $this->_current_user = explode("@", $user);
        }
        return $this->_current_user;
    }