[SOLVED] String Concatenation
Posted: Mon Jan 03, 2005 4:30 pm
Hi All:
Been looking at the PHP documentation for a while and wondered if it is just not possible or what i am doing wrong to get a string built.
I am looking to concatenate bits into one variable. here is what i am trying:
The hope was to achieve the following output when you echo the string:
contentsofsomeVar: contents of anotherVar
Help is greatly welcomed
Been looking at the PHP documentation for a while and wondered if it is just not possible or what i am doing wrong to get a string built.
I am looking to concatenate bits into one variable. here is what i am trying:
Code: Select all
<?php
$string = $someVar + ": " + $anotherVar;
?>contentsofsomeVar: contents of anotherVar
Help is greatly welcomed