Ver originallist($array["A"], $array["B"]) = [$array["B"], $array["A"]];
Ver originalfunction swap(&$x,&$y) { list($x, $y) = [$y, $x]; }