--- 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).