I want to place a HTML code inside a $ variable. So, I have a "sidebar.html" file, which has just got various "{$test1}" "{$test2}" and so on.
I can't work out how to add the HTML code to that.
So in short, I want to have {$fleet} in the first HTML file, and in my php code, I need something like
$fleet = <div class="sidebar-content">
<div class="sidebar-header">Find a Fleet</div>
<div class="sidebar-link">
<a href="./index.php?a=profile&u=ObsidianFleet">Obsidian Fleet</a>
<a href="./index.php?a=profile&u=startrekfreedom">Star Trek Freedom</a>
</div>
<div class="sidebar-link">
</div>
</div>
}
Thanks in advance
$variable? Variables in PHP are all indicated by$.