Why can't I set a string value in this PHP code?
<p>I visit:</p>

<p><a href="http://www.mydomain.com/test.php?loc=1" rel="nofollow">http://www.mydomain.com/test.php?loc=1</a></p>

<p>This should set $location to be 'VC' and print it out to the screen.</p>

<p>But when I do this, I get a zero '0' instead.</p>

<p>What am I doing wrong, why can't I set a string?</p>

<pre><code>&lt;?php
    $loc = $_REQUEST['loc'] ;
if($loc == 1){
$location = 'VC';
echo 'yes';
}
else {
echo "ERROR - Wrong Location code presented";
}   
    echo 'Location: ' + $location;

?&gt;
</code></pre>

<p>I started with:</p>

<pre><code>&lt;?php
    $loc = $_REQUEST['loc'] ;
    echo 'Location: ' + $loc;
?&gt;
</code></pre>

<p>Where I would visit:</p>

<p><a href="http://www.mydomain.com/test.php?loc=VC" rel="nofollow">http://www.mydomain.com/test.php?loc=VC</a></p>

<p>and it would do what I want, but that didn't work.</p>

<p>I must be missing something obvious, but I can't see what. help!</p>
