PHP unset() İşlevi
❮ PHP Değişken İşleme Referansı
Örnek
Değişkenleri ayarla:
<?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;
?>
Tanım ve Kullanım
unset() işlevi bir değişkenin ayarını kaldırır.
Sözdizimi
unset(variable, ....);
Parametre Değerleri
Parameter | Description |
---|---|
variable | Required. Specifies the variable to unset |
... | Optional. Another variable to unset |
Teknik detaylar
Geri dönüş değeri: | Hiçbiri |
---|---|
İade Türü: | Hiçbiri |
PHP Sürümü: | 4.0+ |
❮ PHP Değişken İşleme Referansı