For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2004 > How to add two variables









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to add two variables
Grzegorz R

2004-09-27, 3:57 pm

I have two variables, one is $name (is aquired form
http://192.168.1.1?name=one

and the other one is normal for ex. $two=".html"

How I can add them together to get 3rd variable $tree=one.html

??


Polaris

2004-09-27, 8:56 pm

$tree=$one . $two;
print $tree;

connection through . in PHP.


"Grzegorz R" <robgold A N T Y S P A M@interia.pl> schreef in bericht
news:cj9oa2$ol4$1@nemesis.news.tpi.pl...
>I have two variables, one is $name (is aquired form
> http://192.168.1.1?name=one
>
> and the other one is normal for ex. $two=".html"
>
> How I can add them together to get 3rd variable $tree=one.html
>
> ??
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com