PHP unset() 함수
예시
설정되지 않은 변수:
<?php
$a = "Hello world!";
echo
"The value of variable 'a' before unset: " . $a . "<br>";
unset($a);
echo
"The value of variable 'a' after unset: " . $a;
?>
정의 및 사용
unset() 함수는 변수를 설정 해제합니다.
통사론
unset(variable, ....);
매개변수 값
Parameter | Description |
---|---|
variable | Required. Specifies the variable to unset |
... | Optional. Another variable to unset |
기술적 세부 사항
반환 값: | 없음 |
---|---|
반환 유형: | 없음 |
PHP 버전: | 4.0+ |
❮ PHP 변수 처리 참조