I have a variable and I need to put some html in it. Unfortunatelly there are some if statements in that html. How do I put it in a var ?
Exaple of what I have:
$html = "<tr><td>".$Item."<br><b>".$type." Number: ".$number;
if ($1 == 1) {
echo " value";
}
echo "</b><br>".$item2."
</td></tr>";
This is a small snippet of the code but it ALL needs to be within $html