Re: Re: concatenating with "." or ","

From: Date: Mon, 25 Aug 2008 08:08:03 +0000
Subject: Re: Re: concatenating with "." or ","
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-278635@lists.php.net to get a copy of this message
Gosh, what a smart ass! The comma can also concatenate string! You may want to run the following lines: <?php $a = 3; $b = 5; echo $a, "abc", $b; ?> Regards, (I'm actually crying right now for guys like who showoff too much..) Nitsan 2008/8/25 Colin Guthrie <gmane@colin.guthr.ie> > Govinda wrote: > >> easy to find our about concatenating with "." in the docs... >> but not so with "," >> >> what is the difference? >> > > One works and the other you made up? > > Comma is an argument separator, it does not concatenate strings. You may > see some example code that passes two strings into a function and you are > assuming it's concatenating them before passing them in, but it's not. > > If you have any examples perhaps folks here can clarify for you? > > Col > > -- > > Colin Guthrie > gmane(at)colin.guthr.ie > http://colin.guthr.ie/ > > Day Job: > Tribalogic Limited [http://www.tribalogic.net/] > Open Source: > Mandriva Linux Contributor [http://www.mandriva.com/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#278635) next »