function getClientIndex() { $client = new Client("{$this->client}"); $this->clientIndex = $client->getClientIndex(); //echo "$this->clientIndex is the clientIndex"; return $this->clientIndex; }