$archivo = "1.txt"; $abre = fopen($archivo, "a+"); $grabar = fwrite($abre, "\n$algo, $algo1, $algo2, $algo3"); fclose($abre);