public function sendSMS($phones, $text) { $client = new SMSClient($this->login, $this->password); $sessionID = $client->getSessionID(); try { $client->send("" . $this->sender . "", "{$phones}", "{$text}"); } catch (SMSError_Exception $e) { return $e; } }