0

What is the difference please?

Hello,I need your help: I didn't understand this part of the code extract of an exercice of the site "Codeschool". Can you enlighten me please? ------ <?php $city='Tokyo'; $established='1868'; $country='Japan'; ?> (What is the difference between this two code? Why there are point after variable "established" and not after "city"?) <p><?php echo $city. 'has a very high population' ; ?> </p> <p><?php echo $city the capital of country and was established in $established. ; ?></p> Thank 's in advance😉

18th Dec 2017, 11:20 AM
Audrey
Audrey - avatar
2 Answers
+ 6
the dot ( .) concatenation operator is used to join to strings.
18th Dec 2017, 11:34 AM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 1
Thank you 😀
18th Dec 2017, 11:41 AM
Audrey
Audrey - avatar