我正在尝试从查询中创建一个csv文件
$query = "SELECT username AS 'MATRIC NUMBER' FROM table
WHERE field1 = '$data1' AND field2 = '$data2'";
并希望我的CSV文件的标题为
"MATRICULATION NUMBER, TEST, EXAM"
而不是将要返回的内容
"MATRICULATION NUMBER"
只。任何帮助将不胜感激