|
 |
beginning_php thread: dunno
Message #1 by "Randy Bartels" <bunchofpixels@a...> on Sun, 1 Jul 2001 20:21:28
|
|
i've seen the .= operator used. what does that do?
Message #2 by "Chris Sano" <t-csano@m...> on Sun, 1 Jul 2001 12:23:21 -0700
|
|
It concatenates the variable at the left with the string on the right.
$test =3D "This is a ";
$test .=3D "string";
echo( $test );
returns:
This is a string
-----Original Message-----
From: Randy Bartels [mailto:bunchofpixels@a...]
Sent: Sunday, July 01, 2001 1:21 PM
To: beginning php
Subject: [beginning_php] dunno
i've seen the .=3D operator used. what does that do?
Message #3 by "Kev Fields" <drunkendruid@h...> on Sun, 1 Jul 2001 15:22:37 -0400
|
|
I think it's used to concatenate what's on the right of the operator to t
he end of what's on the left.
Example:
$VariableString =3D "This is ";
$VariableString .=3D "just an example.";
echo $VariableString; // would echo "This is just an example."
----- Original Message -----
From: Randy Bartels
Sent: July 1, 2001 3:18 PM
To: beginning php
Subject: [beginning_php] dunno
i've seen the .=3D operator used. what does that do?
Message #4 by BunchOfPixels@a... on Sun, 1 Jul 2001 17:51:32 EDT
|
|
|
 |