Swap two variables value without using third variable in php

Swap two variables value without using third variable in php ?

Gaurav , 09 Feb 2018

1 Answers

$a = $a + $b; // 5 + 6 = 11 $b = $a - $b; // 11 - 6 = 5 $a = $a - $b; // 11 - 5 = 6 print $a . ',' . $b;

  • Lisa Lisa 30 May 2024

    Hello! In my opinion, programming languages ??have a lot of nuances and subtleties that will only be accessible with extensive experience. I recently realized that I have serious difficulties with php assignment and have been thinking for a long time about what to do. Fortunately, I have a cunning friend who advised me to use php assignment help for money. In general, I did just that and am completely satisfied with the results.