How can PHP developers handle "unsichtbare" .htaccess files in directories when using FTP?

When using FTP, PHP developers can handle "unsichtbare" .htaccess files in directories by using the PHP function `glob()` to search for files that start with ".htaccess" and then delete or modify them accordingly.

<?php
$files = glob('.htaccess*');
foreach($files as $file){
    if(is_file($file)){
        // Handle the .htaccess file as needed (e.g. delete or modify)
    }
}
?>