Files
2nd/10_Wiki/Dev/Topic_PHP/PHP_Superglobals.md
T
Antigravity Agent 1cfd3bbb56 docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고,
Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
2026-07-05 00:10:59 +09:00

67 lines
2.9 KiB
Markdown

---
id: php-superglobals
title: "PHP Superglobals"
category: "Programming_Language"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["PHP 슈퍼글로벌"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.9
created_at: 2026-07-04
updated_at: 2026-07-04
review_reason: ""
merge_history: []
tags: ["php", "programming", "w3schools", "superglobals"]
raw_sources: ["https://www.w3schools.com/php/php_superglobals.asp"]
applied_in: []
github_commit: ""
---
# [[PHP Superglobals]]
## 🎯 한 줄 통찰 (One-line insight)
Superglobals are accessible from ANY scope without any special declaration — unlike a normal global variable (which requires the `global` keyword or `$GLOBALS[]` inside a function), superglobals like `$_POST` or `$_SERVER` are usable directly inside any function, class, or file with zero setup. [S1]
## 🧠 핵심 개념 (Core concepts)
- **Superglobal** — a built-in variable always accessible regardless of scope, no special access syntax needed. [S1]
- **The 9 superglobals** — `$GLOBALS`, `$_SERVER`, `$_REQUEST`, `$_POST`, `$_GET`, `$_FILES`, `$_ENV`, `$_COOKIE`, `$_SESSION`. [S1]
## 📖 세부 내용 (Details)
- `$GLOBALS` — references to all global variables. [S1]
- `$_SERVER` — web server info (headers, paths, script locations). [S1]
- `$_REQUEST` — combined data from GET, POST, COOKIE. [S1]
- `$_POST` / `$_GET` — HTTP POST/GET method data. [S1]
- `$_FILES` — uploaded file info via POST. [S1]
- `$_ENV` — environment variables. [S1]
- `$_COOKIE` — HTTP cookie data. [S1]
- `$_SESSION` — session variables. [S1]
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
소스에서 모순되는 정보는 발견되지 않음.
## 🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — 슈퍼글로벌 목록은 이후 개별 챕터(GLOBALS/SERVER/REQUEST/POST/GET)에서 각각 심화된다. [S1]
## 💻 코드 패턴 (Code patterns)
해당 챕터는 개념 소개 중심으로 별도 코드 예제가 없음 — 다음 챕터([[PHP Superglobals Globals]])에서 $GLOBALS 실습이 시작된다.
## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.90
- **중복 검사 결과:** 신규 생성 (New discovery)
## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[PHP Tutorial]]
- **관련 개념:** [[PHP Superglobals Globals]], [[PHP Superglobals Server]], [[PHP Superglobals Request]]
- **참조 맥락:** 슈퍼글로벌 전체 목록 — $GLOBALS 챕터로 이어짐.
## 📚 출처 (Sources)
- [S1] W3Schools — PHP Superglobals — https://www.w3schools.com/php/php_superglobals.asp
## 📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "PHP Superglobals" page (Astra wiki-curation, P-Reinforce v3.1 format).