ftp_close

PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
ftp_close - Closes an FTP connection
Manual
Code Examples

ftp_close( FTP\Connection$ftp ): bool

ftp_close closes the given link identifier and releases the resource.

Note:

After calling this function, you can no longer use the FTP connection and must create a new one with ftp_connect.

Parameters

ftp

An FTP\Connection instance.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.1.0 The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected.

Related Functions

Example of ftp_close

Show all examples for ftp_close

PHP Version: