PHP ftp_close() FunctionLast Updated : 17 Mar 2025 The ftp_close() function is used to closes an FTP connection or given link. This function introduced in PHP 4.2.0 Syntax:
ReturnsThe ftp_close( ) function returns TRUE on success or FALSE on failure. Important note: After calling this function, you can no longer use the FTP connection and must create a new one with ftp_connect().Example 1By Using ftp_connect function we opens an FTP connection and by using ftp_close function we can closes an FTP connection. Example 2The ftp_close() function closes an FTP connection. Next TopicPHP FTP |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India