The What
Description
The unset()
construct destroys the specified variables by unlinking the data from the variable in the look-up (symbols) table.
The behavior of unset()
inside of a function can vary depending on what type of variable you are attempting to destroy.
If a globalized variable is unset()
inside of a function, only the local variable is destroyed. The variable in the calling environment will retain the same value as before unset()
was called.
Show It in ActionBasic
Let’s see the unset
function in action. In this video, you will see how it works, including the sequencing flowchart.
Who needs copy/paste? Right. Writing code from scratch is fun!
Go DeepPro
In this video, you will go deeper into the instruction.
WhenPro
In this video, you will learn when to use unset
.