In PHP, how can I reference the first for
from the second, as in the example below?
for ($i=0; $i < 10; $i++) {
for ($j=0; $j < 10; $j++) {
// Quero que esse afete o primeiro 'for' e não o segundo
if ($j == $i) continue;
echo $j;
}
}
I learned how to do this using the Kotlin , but is there any way to do something similar in PHP?