unset
Destroys the specified variables. Unset removes the variable from memory.
Parameters
main.php
Return Values
void
No value is returned
On success:Variable is removed from memory
On failure:No failure case - always executes
Notes
- This is a language construct, not a function
- Inside functions, only local scope is affected unless using $GLOBALS
- Unsetting array elements doesn't reindex the array
- Can unset multiple variables in a single call
Changelog
- Function has been available since PHP 4.0.0