public function sendText($text) { $cmd = implode(' ', array('SEND', 'TEXT', '"' . $text . '"')); $result = $this->send($cmd); if ($result->isResult(-1)) { throw new PAGIException('Command failed'); } }