Page 1 of 1

Question on the '.'

Posted: Mon May 09, 2011 5:55 pm
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.

Re: Question on the '.'

Posted: Mon May 09, 2011 6:01 pm
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.

Re: Question on the '.'

Posted: Mon May 09, 2011 6:25 pm
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?

Re: Question on the '.'

Posted: Mon May 09, 2011 6:32 pm
by Tino
I believe a full stop is a term used within regular expressions.

I don't think you're really into that yet ;)

Re: Question on the '.'

Posted: Mon May 09, 2011 9:22 pm
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.

Re: Question on the '.'

Posted: Tue May 10, 2011 12:08 am
by jacek
well "." is called a full stop ... or period.