---
id: php-looping-continue
title: "PHP Looping Continue"
category: "Programming_Language"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["continue statement", "PHP continue"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.88
created_at: 2026-07-04
updated_at: 2026-07-04
review_reason: ""
merge_history: []
tags: ["php", "programming", "w3schools", "loops", "continue"]
raw_sources: ["https://www.w3schools.com/php/php_looping_continue.asp"]
applied_in: []
github_commit: ""
---
# [[PHP Looping Continue]]
## π― ν μ€ ν΅μ°° (One-line insight)
Like `break`, `continue` behaves identically across all four loop types (for, while, do-while, foreach) β this chapter mirrors the break chapter's structure exactly, reinforcing that PHP's loop-control keywords are orthogonal to which loop construct they're used in. [S1]
## π§ ν΅μ¬ κ°λ
(Core concepts)
- **`continue`** β skips the rest of the current iteration and proceeds to the next one, without ending the whole loop. [S1]
- **Applies uniformly to** β for, while, do...while, foreach. [S1]
## π μΈλΆ λ΄μ© (Details)
- For: `for ($x = 0; $x < 10; $x++) { if ($x == 4) { continue; } echo "The number is: $x
"; }`. [S1]
- While: `$x = 0; while($x < 10) { if ($x == 4) { continue; } echo "The number is: $x
"; $x++; }`. [S1]
- Do-while: `$i = 0; do { $i++; if ($i == 3) continue; echo $i; } while ($i < 6);`. [S1]
- Foreach: `foreach ($colors as $value) { if ($value == "blue") continue; echo "$value
"; }`. [S1]
## βοΈ λͺ¨μ λ° μ
λ°μ΄νΈ (Contradictions & updates)
μμ€μμ λͺ¨μλλ μ 보λ λ°κ²¬λμ§ μμ.
## π οΈ μ μ© μ¬λ‘ (Applied in summary)
νμ¬ λ°κ²¬λ μ€μ μ μ© μ¬λ‘κ° μμ΅λλ€ β νΉμ 쑰건μ λ°λ³΅λ§ 건λλ°κ³ λλ¨Έμ§λ κ³μ μ§ννλ νν°λ§ ν¨ν΄μ΄ λν μ¬λ‘λ€. [S1]
## π» μ½λ ν¨ν΄ (Code patterns)
continue skips only the current iteration (PHP):
```php
foreach ($colors as $value) {
if ($value == "blue") continue;
echo "$value
";
}
```
## β
κ²μ¦ μν λ° μ λ’°λ
- **μν:** draft
- **κ²μ¦ λ¨κ³:** conceptual
- **μΆμ² μ λ’°λ:** B (W3Schools β widely used educational reference, not a primary standards body)
- **μ λ’° μ μ:** 0.88
- **μ€λ³΅ κ²μ¬ κ²°κ³Ό:** μ κ· μμ± (New discovery)
## π μ§μ κ·Έλν (Knowledge Graph)
- **μμ/루νΈ:** [[PHP Tutorial]]
- **κ΄λ ¨ κ°λ
:** [[PHP Looping Break]], [[PHP Functions]]
- **μ°Έμ‘° λ§₯λ½:** λ°λ³΅λ¬Έ μΉμ
μ λ§μ§λ§ β ν¨μ(Functions) μ±ν°λ‘ μ΄μ΄μ§.
## π μΆμ² (Sources)
- [S1] W3Schools β PHP Continue Statement β https://www.w3schools.com/php/php_looping_continue.asp
## π λ³κ²½ μ΄λ ₯ (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "PHP Continue Statement" page (Astra wiki-curation, P-Reinforce v3.1 format).