How to merge Strings and Integers together with PHP?
<p>I'm trying to merge some integers and strings together and output them with echo.</p>

<p>What I've done:</p>

<pre><code>$a=1
$b=2
$c=3
$d=4

echo 'var saveName = "' . $a . '_KID=' . $b . '_RID=' . $c . '";var RID = ' . $d . ';';
</code></pre>

<p>however that throws an error:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected '$b' (T_VARIABLE) in ...</p>
</blockquote>

<p>I don't see whats wrong here. What causes that error?</p>