public function put($files, $root = 'public_html')
    {
        if ($this->isConnected() === true) {
            foreach ($files as $key => $value) {
                ftp_put($this->getConnection(), $server_root.'/'.$value, $value, FTP_ASCII);
            }
        } else {
            return false;
        }
    }
public function put($files, $root = 'public_html')
    {
        if ($this->isConnected() === true) {
            foreach ($files as $key => $value) {
                ftp_put($this->getConnection(), $server_root.'/'.$value, $value, FTP_ASCII);
            }
        } else {
            return false;
        }
    }
public function put ( $ files , $ root = 'public_html' ) { if ( $ this -> isConnected ( ) === true ) { foreach ( $ files as $ key => $ value ) { ftp_put ( $ this -> getConnection ( ) , $ server_root . '/' . $ value , $ value , FTP_ASCII ) ; } } else { return false ; } }
Upload the files.

@param (array)  $files number of files you want to uplaod
@param (string) $root  Server root directory or sub

@since 3.0.0

@return mixed
Upload the files .