I'm trying to merge some integers and strings together and output them with echo.
What I've done:
$a=1
$b=2
$c=3
$d=4
echo 'var saveName = "' . $a . '_KID=' . $b . '_RID=' . $c . '";var RID = ' . $d . ';';
however that throws an error:
Parse error: syntax error, unexpected '$b' (T_VARIABLE) in ...
I don't see whats wrong here. What causes that error?