Pergunta de entrevista da empresa Rock Technolabs

He asked me to swipe 2 numbers w/o using the third variable: $a = 10 $b = 5;

Resposta da entrevista

Sigiloso

12 de jul. de 2019

I took approx 1 or 2 min and answer in the following way : $a = 10; $b = 5; $a = $a+$b; $b = $a-$b; $a = $a-$b; echo $a; echo ' ---- '; echo $b; But somehow he was not impressed by this