I have a project where I have inputs that decide the range of numbers echoed but I also need to have a single number echo more text. At the moment I have an if statement which works but echoes the number a second time.
for ($x = $var1; $x <= $var2; $x += $varInc) {
echo "<p>$x</p>";
if ($x == $varGhost){
echo "<p class='fas fa-ghost'></p>";
}
}
It's supposed to look similar to this:
