I have an array:
array( 0 => \'contact\', 1 => \'home\', 2 => \'projects\' );
and I need to swap the \'contact\' with
In PHP 7.1+ syntax, you can use this
[$Array[$a], $Array[$b]] = [$Array[$b], $Array[$a]];