Jump to content


Photo

What does ".=" mean?


  • Please log in to reply
5 replies to this topic

#1 dual_alliance

dual_alliance
  • Members
  • PipPipPip
  • Advanced Member
  • 140 posts
  • LocationNSW, Australia

Posted 17 July 2006 - 06:03 PM

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

Thanks,

dual_alliance

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 06:08 PM

It is the assignment operator.

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";


#3 dual_alliance

dual_alliance
  • Members
  • PipPipPip
  • Advanced Member
  • 140 posts
  • LocationNSW, Australia

Posted 17 July 2006 - 06:08 PM

cheers

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 06:10 PM

i thort it ment caternation asighnment
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#5 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 06:13 PM

Oh crap! I Missed that out. yeah its actuall name is concatenating assignment operator, the assignment operater is the equal sign.

#6 dual_alliance

dual_alliance
  • Members
  • PipPipPip
  • Advanced Member
  • 140 posts
  • LocationNSW, Australia

Posted 17 July 2006 - 06:13 PM

lol ok, thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users