Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Set miscellaneous runtime FTP options
<?php ftp_set_option(FTP\Connection $ftp, int $option, int|bool $value): bool
<?php     function ftp_set_option(...$arguments)

    {

        if ( ! is_mocked('ftp_set_option')) {

            return \ftp_set_option(...$arguments);

        }



        return return_mocked_value('ftp_set_option');
<?php             return;

        }



        if ( ! ftp_set_option($connection, FTP_USEPASVADDRESS, ! $ignorePassiveAddress)) {

            throw UnableToSetFtpOption::whileSettingOption('FTP_USEPASVADDRESS');

        }

    }