src/PTel.php
public function recvLine($delimiter = "\n") {
        $str = '';
        while (!$this->stream_eof()) {
            $char = $this->recvChr();
            $str .= $char;
            if ($char === false) { return $str; }
            if (strpos($str, $delimiter) !== false) { return $str; }
        }
        return $str;
    }
public function recvLine($delimiter = "\n") {
        $str = '';
        while (!$this->stream_eof()) {
            $char = $this->recvChr();
            $str .= $char;
            if ($char === false) { return $str; }
            if (strpos($str, $delimiter) !== false) { return $str; }
        }
        return $str;
    }
public function recvLine ( $ delimiter = "\n" ) { $ str = '' ; while ( ! $ this -> stream_eof ( ) ) { $ char = $ this -> recvChr ( ) ; $ str .= $ char ; if ( $ char === false ) { return $ str ; } if ( strpos ( $ str , $ delimiter ) !== false ) { return $ str ; } } return $ str ; }
Receive line from connection

@param   string  $delimiter  Line delimiter

@throws  SocketClientException   On socket communication error
@return  string                  String from socket connection
Receive line from connection