protected checkResponse ( string $string ) : boolean | ||
$string | string | |
return | boolean |
protected function checkResponse($string)
{
if (substr($string, 0, 3) !== '+OK') {
$this->setError(['error' => "Server reported an error: {$string}", 'errno' => 0, 'errstr' => '']);
return false;
} else {
return true;
}
}