Net/Socket.php
public function writeLine($data)
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        return fwrite($this->fp, $data . $this->newline);
    }
public function writeLine($data)
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        return fwrite($this->fp, $data . $this->newline);
    }
public function writeLine ( $ data ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } return fwrite ( $ this -> fp , $ data . $ this -> newline ) ; }
Write a line of data to the socket, followed by a trailing newline.

@param string $data Data to write

@access public
@return mixed fwrite() result, or PEAR_Error when not connected
Write a line of data to the socket followed by a trailing newline .