I won't break a loop that is in another loop these are my codes
for ($i = 0; $i < 20; $i++) {
// some codes
for ($i1 = 0; $i1 < 10; $i1++) {
if (a condition)
{
// i want break this loop not parent loop
}
}
// some codes
}
if I use break;
parent loop will break too but I won't break
only work for child loop
thanks for your answers