0

I'm trying to combine several variables:

$subject2 = $subject." "."-"." ".$info." "."(".$name.")";

This is so that it eventually looks like

$subject - $info ($name)

But this produces an error:

Parse error: syntax error, unexpected '$subject2' (T_VARIABLE) in /home/hhasbdmx/public_html/gmc_num/form.php on line 17

Edit: How would you rewrite this using the sprinf() function?

Has
  • 13
  • 4

0 Answers0