0
我有以下的數組:從數組中取出的索引
array(3) {
[0]=> array(1) { ["theme_loader_plugin"]=> string(4) "_run" }
[1]=> array(1) { ["user_plugin"]=> string(4) "_run" }
[2]=> array(1) { ["sessions_plugin"]=> string(4) "_run" }
}
有一種方法使用預定義的PHP函數以去除索引和代替格式化這樣的:通過
array(3) {
["theme_loader_plugin"]=> string(4) "_run",
["user_plugin"]=> string(4) "_run",
["sessions_plugin"]=> string(4) "_run"
}
直接array_keys通過@ Rizier123 –