disconnect
disconnect($server); - disconnect the FTP connection from the specified address ( before 4.6.36 - it was disconnect )
The function accepts parameters as input:
$server – FTP connection address
After testing, the function returns the result of its work to the script :
true – successfully disabledfalse – errors occurred during the shutdown