static function write($filename, $contents, $overwriteExisting = true) {
        if (file_exists($filename) && self::isWritable($filename)) {
            if ($overwriteExisting) unlink($filename);
        }

        file_put_contents($filename, $contents);
    }
static function write($filename, $contents, $overwriteExisting = true) {
        if (file_exists($filename) && self::isWritable($filename)) {
            if ($overwriteExisting) unlink($filename);
        }

        file_put_contents($filename, $contents);
    }
static function write ( $ filename , $ contents , $ overwriteExisting = true ) { if ( file_exists ( $ filename ) && self :: isWritable ( $ filename ) ) { if ( $ overwriteExisting ) unlink ( $ filename ) ; } file_put_contents ( $ filename , $ contents ) ; }
Create or updates file

@param   string  $filename   File to create or update
@param   string  $contents   Contents to write into file
@param   bool    $overwriteExisting  Overwrite existing file
Create or updates file