<?php 
function func($x, $y) {
	
echo " until change: $x, $y"."\n";

$num=$x;
$x=$y;
$y=$num;

echo "result: $x, $y";
}
func(2,1);

\\ result-- until change: 2----1, result:1-----2
by Gvanca Gharibashvili
2 years ago
PHP
Object Oriented PHP Tutorial
0
Pro tip: use ```triple backticks around text``` to write in code fences