public function write(string $filename, string $contents): int
    {
        return (int)file_put_contents($filename, $contents);
    }
public function write(string $filename, string $contents): int
    {
        return (int)file_put_contents($filename, $contents);
    }
public function write ( string $ filename , string $ contents ) : int { return ( int ) file_put_contents ( $ filename , $ contents ) ; }
Write the given contents to the given file.

@param  string $filename
@param  string $contents
@return int
Write the given contents to the given file .