<?php
header('Content-Type: text/csv');
header('Content-Disposition: attachment; filename="sample_leads.csv"');

$output = fopen("php://output", "w");

// Add column headers
fputcsv($output, [
    'Name',
    'Phone1',
    'Phone2',
    'Email',
    'City'
]);

// Add sample row
fputcsv($output, [
    'Test User',
    '9999999999',
    '8888888888',
    'test@example.com',
    'Pune'
]);

fclose($output);
exit;