ftp_pwd
PHP 4, PHP 5, PHP 7, PHP 8
ftp_pwd - Returns the current directory name
Manual
ftp_pwd(
FTP\Connection$ftp ): string|false
Parameters
- ftp
-
An FTP\Connection instance.
Return Values
Returns the current directory name or false on error.
Changelog
Version | Description |
8.1.0 | The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected. |