TeamSpeak3/Node/Server.php
public function serverGroupGetByName($name, $type = TeamSpeak3::GROUP_DBTYPE_REGULAR)
    {
        foreach ($this->serverGroupList() as $group) {
            if ($group["name"] == $name && $group["type"] == $type) {
                return $group;
            }
        }

        throw new Ts3Exception("invalid groupID", 0xA00);
    }
public function serverGroupGetByName($name, $type = TeamSpeak3::GROUP_DBTYPE_REGULAR)
    {
        foreach ($this->serverGroupList() as $group) {
            if ($group["name"] == $name && $group["type"] == $type) {
                return $group;
            }
        }

        throw new Ts3Exception("invalid groupID", 0xA00);
    }
Returns the Servergroup object matching the given name.

@param  string $name
@param  integer $type
@throws Ts3Exception
@return Servergroup