Faqts : Computers : Programming : Shopping For You : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 10 people (70%) answered Yes
Recently 5 of 7 people (71%) answered Yes


What does the period do in this statement: $svarname = "other_site" . $i; Concactenation?

May 14th, 2000 19:21
Nathan Wallace, Colin Dellow, harry f,

The period does indeed concatenate the two clauses.
However, because you are using double quotes, you could also do:
  $svarname = "other_site $i";
and PHP would substitute in the $i.
  $svarname = 'other_site $i';
would be taken literally, as it uses single quotes.