> From: "Richard Davey" <[EMAIL PROTECTED]> Saturday, May 22, 2004 6:46 AM > Subject: Re: [PHP] concatenating strings
> BF> how do I add newline commands in the middle of a text string? > > $message = "My name is " . $myname . "\nMy favorite color is " . $color; > > \n = new line Also "\n" only works in double quotes. If you use single quotes you need to break out and concatenate \n in double quotes. $message = 'My name is ' . $myname . "\n" . 'My favorite color is ' . $color; --- The future will be better tomorrow --- http://www.spiceplace.com/ ---------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php