note 106179 added to language.variables.basics

From: Date: Mon, 17 Oct 2011 11:10:51 +0000
Subject: note 106179 added to language.variables.basics
Groups: php.notes 
Request: Send a blank email to php-notes+get-183918@lists.php.net to get a copy of this message
you can also swith two numbers by just using + and - operators <?php $a=1; $b=2; //these are the two numbers we are going to swap $a=$a+$b; $b=$a-$b; $a=$a-$b; //the swapped values are echo $a. PHP_EOL.$b; ?> /*output will be 2 1*/ ---- Server IP: 69.147.83.197 Probable Submitter: 183.82.121.83 ---- Manual Page -- http://www.php.net/manual/en/language.variables.basics.php Edit -- https://master.php.net/note/edit/106179 Del: integrated -- https://master.php.net/note/delete/106179/integrated Del: useless -- https://master.php.net/note/delete/106179/useless Del: bad code -- https://master.php.net/note/delete/106179/bad+code Del: spam -- https://master.php.net/note/delete/106179/spam Del: non-english -- https://master.php.net/note/delete/106179/non-english Del: in docs -- https://master.php.net/note/delete/106179/in+docs Del: other reasons-- https://master.php.net/note/delete/106179 Reject -- https://master.php.net/note/reject/106179 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183918) next »