Skip to content

Instantly share code, notes, and snippets.

@pazteddy
Created January 20, 2026 16:22
Show Gist options
  • Select an option

  • Save pazteddy/9ad7ab109fc7eb59878ccaba28f0536e to your computer and use it in GitHub Desktop.

Select an option

Save pazteddy/9ad7ab109fc7eb59878ccaba28f0536e to your computer and use it in GitHub Desktop.
Diferencias, usos típicos de break y continue

⚖️ Diferencia clara entre break y continue

Instrucción Qué hace
break Sale del bucle por completo
continue Salta la iteración actual
Uso típico Buscar algo y detener
Uso típico Filtrar o ignorar datos

❌ Errores comunes

if ($value === 10) {
    continue;
}

❌ Error: continue solo funciona dentro de bucles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment