You are here: Re: concatanate 2 strings « PHP Programming Language « IT news, forums, messages
Re: concatanate 2 strings

Posted by Jacob Atzen on 06/20/05 19:17

On 2005-06-20, Desmond <pd_otoole@hotmail.com> wrote:
> Can someone please tell me how to concatanate to strings like this
> please
>
>
> $name = $_POST["Name"];
> $from = $_POST["Email"];
>
> $headers = "From: $name $from\r\n";
>
> i beleve in C there is a strcat() is this similar.
> if so is there an online site for PHP function.

In PHP the concatenation operator is the dot. So you can concatenate two
strings like:

$concatenated = $string1.$string2;

This is also described in the manual (which is really a great ressource
for PHP developers):

<http://www.php.net/manual/en/language.types.string.php>

--
Cheers,
- Jacob Atzen

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация