PHP: Exchange Value of Variables |
Written by Administrator | |
giovedì, 31 dicembre 2009 | |
When exchanging the values of two variables, a third 'temp' variable is generally constructed to temporarily store one of the variables while the exchange is performed.
if ($exchange) { There is however a more elegant way in PHP using the language construct list:
if ($exchange) { |
|
Last Updated ( giovedì, 31 dicembre 2009 ) |