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

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

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

@param  string $name
@throws Exception
@return Client
Returns the Client object matching the given name .