TeamSpeak3/Node/Channel.php
public function clientGetByName($name)
    {
        foreach ($this->clientList() as $client) {
            if ($client["client_nickname"] == $name) {
                return $client;
            }
        }

        throw new TeamSpeak3_Adapter_ServerQuery_Exception("invalid clientID", 0x200);
    }
public function clientGetByName($name)
    {
        foreach ($this->clientList() as $client) {
            if ($client["client_nickname"] == $name) {
                return $client;
            }
        }

        throw new TeamSpeak3_Adapter_ServerQuery_Exception("invalid clientID", 0x200);
    }
public function clientGetByName ( $ name ) { foreach ( $ this -> clientList ( ) as $ client ) { if ( $ client [ "client_nickname" ] == $ name ) { return $ client ; } } throw new TeamSpeak3_Adapter_ServerQuery_Exception ( "invalid clientID" , 0x200 ) ; }
Returns the Client object matching the given name.

@param  integer $name
@throws TeamSpeak3_Adapter_ServerQuery_Exception
@return Client
Returns the Client object matching the given name .