Jump to content

Archived

This topic is now archived and is closed to further replies.

dual_alliance

What does ".=" mean?

Recommended Posts

What does ".=" actually mean?  The tutorial books l used to learn PHP never used it (guess they must be pretty crummy)

Thanks,

dual_alliance

Share this post


Link to post
Share on other sites
It is the [url=http://php.net/manual/en/language.operators.string.php]assignment operator[/url].

For example say you have this variable:
$var = "something";
now you want to add something onto that variable you can do this:
$var .= " has been added";

$var will now hold "something has been added";

Share this post


Link to post
Share on other sites
Oh crap! I Missed that out. yeah its actuall name is [b]concatenating assignment operator[/b], the assignment operater is the equal sign.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.