I want to echo 4 lines of code. The variable $x shall be 1,2,3,4 and the variable $y shall be 3,4,5,6.
The $x variable in my loop works fine, the $y however doesn't work like I want it (so it echoes 3,4,5,6 later in HTML)
So my question is: Why is the $y variable not returning 3,4,5,6 in my final HTML code.
for ($x=0; $x<=3;$x++) {
$y=3;
if (${"interferer" .$x} == true) {
echo "<li><a href='#tabs-$y'>Interferer $x</a></li>";
}
else {
echo "<!--<li><a href='#tabs-$y'>Interferer $x</a></li>-->";
}
$y++;
}