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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

> 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
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux