Question on the '.'

Ask about a PHP problem here.
Post Reply
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Question on the '.'

Post by GenSwat »

now been doing some reading,They talk about full stop and concatenation are these the same, or is it in the process in which you use it determin the answer.
One of my Favorites
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Question on the '.'

Post by jacek »

a . is the character used to concatenate

[syntax=php]$string = "I am" . " " . "a string";[/syntax]
would be concatenating those three strings and create a variable that holds the result.
Image
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: Question on the '.'

Post by GenSwat »

jacek wrote:a . is the character used to concatenate

[syntax=php]$string = "I am" . " " . "a string";[/syntax]
would be concatenating those three strings and create a variable that holds the result.



Understood, where does the full stop come from?
One of my Favorites
Image
Tino
Posts: 360
Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands

Re: Question on the '.'

Post by Tino »

I believe a full stop is a term used within regular expressions.

I don't think you're really into that yet ;)
Please check out my CodeCanyon items.
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: Question on the '.'

Post by GenSwat »

LOL im allready into OOP or is that an oops just wondering seen a video where someone was cacatenating and kept saying add a full stop.
One of my Favorites
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Question on the '.'

Post by jacek »

well "." is called a full stop ... or period.
Image
Post Reply