TeamSpeak3/Node/Server.php
public function channelGetById($cid)
    {
        if (!array_key_exists((string)$cid, $this->channelList())) {
            throw new Ts3Exception("invalid channelID", 0x300);
        }

        return $this->channelList[intval((string)$cid)];
    }
public function channelGetById($cid)
    {
        if (!array_key_exists((string)$cid, $this->channelList())) {
            throw new Ts3Exception("invalid channelID", 0x300);
        }

        return $this->channelList[intval((string)$cid)];
    }
public function channelGetById ( $ cid ) { if ( ! array_key_exists ( ( string ) $ cid , $ this -> channelList ( ) ) ) { throw new Ts3Exception ( "invalid channelID" , 0x300 ) ; } return $ this -> channelList [ intval ( ( string ) $ cid ) ] ; }
Returns the Channel object matching the given ID.

@param  integer $cid
@throws Ts3Exception
@return Channel
Returns the Channel object matching the given ID .