Exportar txt php

<?php
$namaFile = "addintest.txt";
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=".$namaFile);

// your content goes here
Indonesia People