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.
我有一个数组,可以给我这样的数据
Array ( [5079906a-6eb4] => Selling )
现在我想使用这个 (5079906a-6eb4) 值进行进一步处理。我的问题是如何从该数组变量中提取此值?
如果您只想使用密钥,
$keys = array_keys($arr);
或者你不想失去联系,
$flipped = array_flip($arr);