Beginner
PHP
Q33 / 100
What does unset() do?
Correct! Well done.
Incorrect.
The correct answer is B) Destroys a variable, removing it from scope
B
Correct Answer
Destroys a variable, removing it from scope
Explanation
unset($var) destroys the variable. Inside a function, it only affects the local variable unless passed by reference.
Progress
33/100