PHP unset() Functie
❮ Referentie voor PHP Variable Handling
Voorbeeld
Variabelen uitschakelen:
<?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;
?>
Definitie en gebruik
De functie unset() schakelt een variabele uit.
Syntaxis
unset(variable, ....);
Parameterwaarden
Parameter | Description |
---|---|
variable | Required. Specifies the variable to unset |
... | Optional. Another variable to unset |
Technische details
Winstwaarde: | Geen |
---|---|
Retourtype: | Geen |
PHP-versie: | 4.0+ |
❮ Referentie voor PHP Variable Handling