Re: Join Char Strings
| From: | George Nicolae | Date: | Thu, 29 May 2003 08:06:00 +0000 |
| Subject: | Re: Join Char Strings | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20124@lists.php.net to get a copy of this message | ||
Try to use "."
$var1="test";
$var2="join";
$var3=$var1." ".$var2;
echo $var3; //will print "test join"
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Stephen Rivas Jr" <stephen@throttlehead.com> wrote in message
news:20030529024206.69057.qmail@pb1.pair.com...
> Again, looking in PHP.net for help - unable to proceed.
>
> I'm trying to add a variable string, to another literal string and store
it
> in that variable again. I know it can be done, simply. However, I always
> get "0" when I add them...
>
> $rider_name += "<br>";
>
> I want to take the information from my form, add some html, put in an
> array - then write it to a file that looks good for printing.
>
> How can I make a long string of HTML and then write in a variable, then
> continue adding to my HTML string...like this:
>
> $html_page_string = "<html><head><title>" + $page_title +
> "</title></head><body>";
>
> etc...And then later add to it after I've inserted my other variables and
> HTML code:
>
> $html_page_string += "</body></html>";
>
> I think this can be done in JavaScript but ah....Can it in PHP? Thanks a
ba
> jillion.
>
> Stephen Rivas Jr
> stephen@throttlehead.com
> http://www.throttlehead.com
>
>