[Solved] Concatenate HTML string and variable in PHP [closed]


Use single quotes for raw HTML and curly braces around PHP variables. Like so;

$content = "<meta property='foo' url="{$url}" name="{$name}">";

3

solved Concatenate HTML string and variable in PHP [closed]