PHP ftp_close() Function

The ftp_close() function is used to close an FTP connection.The ftp_close() function closes an FTP connection.

bool ftp_close ( resource $ftp_stream )

ftp_close() closes the given link identifier and releases the resource.

Example -

ParameterDescription
ftp_streamThe link identifier of the FTP connection

Return Values

Returns TRUE on success or FALSE on failure.