TeamSpeak3/Node/Host.php
public function permissionGetIdByName($name)
    {
        if (!array_key_exists((string)$name, $this->permissionList())) {
            throw new Ts3Exception("invalid permission ID", 0xA02);
        }

        return $this->permissionList[(string)$name]["permid"];
    }
public function permissionGetIdByName($name)
    {
        if (!array_key_exists((string)$name, $this->permissionList())) {
            throw new Ts3Exception("invalid permission ID", 0xA02);
        }

        return $this->permissionList[(string)$name]["permid"];
    }
Returns the ID of the permission matching the given name.

@param  string $name
@throws Ts3Exception
@return integer