====== quit ====== {#JAPI Joomla.Framework Client JFTP::quit #} This method quits and closes the current connection. If the connection is successfully closed, it returns true, otherwise, it returns false. ===== Syntax ===== boolean quit () ===== Examples ===== jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->quit() ) { echo "Connection closed!"; } else { echo "Could not close connection!"; } might produce: Connection closed!