<?php
include 'switch.php'
$data = ["A","B","C"];
//Switching Array Index 1 to 2
$newdata = switch($data,1,2);
var_dump($newdata);
//Result ["A","C","B"]
?>
igun997 / array-switch Goto Github PK
View Code? Open in Web Editor NEWArray Switch
License: Apache License 2.0