PHP unset () الوظيفة
مثال
المتغيرات غير المحددة:
<?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;
?>
التعريف والاستخدام
تعمل الدالة unset () على عدم ضبط متغير.
بناء الجملة
unset(variable, ....);
قيمه المعامل
Parameter | Description |
---|---|
variable | Required. Specifies the variable to unset |
... | Optional. Another variable to unset |
تفاصيل تقنية
قيمة الإرجاع: | لا أحد |
---|---|
نوع الإرجاع: | لا أحد |
إصدار PHP: | 4.0+ |
❮ مرجع معالجة متغير PHP