php - MySQL query to get column names? - Stack Overflow I'd like to get all of a mysql table's col names into an array in php? Is there a ... The best way is to use the INFORMATION_SCHEMA metadata virtual database.