Pixel-Artist
01-17-2006, 03:29 PM
what is .= used for?
|
Click to See Complete Forum and Search --> : .= Pixel-Artist 01-17-2006, 03:29 PM what is .= used for? bokeh 01-17-2006, 04:00 PM // this $a .= $b; // is the same as $a = $a . $b aaronbdavis 01-17-2006, 04:01 PM $foo = "bar"; $foo = $foo . "x"; // $foo is now "barx" //is the same as $foo .= "y"; // $foo is now "barxy" other operators work this way also, e.g. $int += 4; // same as $int = $int + 4; $int -= 2; // same as $int = $int - 2; webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |