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.
是否可以内爆数组的索引?一个函数返回给我一个数组,我需要的是该数组的索引,所以我只想用逗号或任何其他字符为我的数据库工作内爆
你的意思是这样的...
implode(',', array_keys($some_arr));
... 对?) 这是;的文档 array_keys简而言之,当使用单个参数(数组)调用时,此函数仅返回其所有键(作为数组)。
array_keys