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