-1
我在PHP中的數組,看起來像這樣:交換多維數組在PHP
$contacts = [
[
"name" => "Peter Parker",
"email" => "[email protected]",
], [
"name" => "Clark Kent",
"email" => "[email protected]",
], [
"name" => "Harry Potter",
"email" => "[email protected]"
]
];
我如何可以互換的最後一個元素和最後一個元素前的一個?