Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个用于调试目的的函数,它将一个 mysql 查询输出为 html 表,包括表字段名。如何枚举查询的字段名称?
抱歉我的描述不好,我在谈论 php 并且可以自己找出:
foreach ($res as $result) { foreach ($result as $col => $type) { echo "Column: ".$col." / ".$type; } }
谢谢