reference/var/functions/unset.xml
9f30ccc6aa0dabe411c52305202fe85209ddc06b
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>void</type><methodname>unset</methodname>
13
13
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
14
-
<methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
14
+
<methodparam rep="repeat"><type>mixed</type><parameter>vars</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>unset</function> destroys the specified variables.
...
...
@@ -165,10 +165,10 @@ Before unset: 3, after unset: 23
165
165
</listitem>
166
166
</varlistentry>
167
167
<varlistentry>
168
-
<term><parameter>...</parameter></term>
168
+
<term><parameter>vars</parameter></term>
169
169
<listitem>
170
170
<para>
171
-
Another variable ...
171
+
Further variables.
172
172
</para>
173
173
</listitem>
174
174
</varlistentry>
...
...
@@ -211,7 +211,7 @@ unset($foo1, $foo2, $foo3);
211
211
<function>unset</function> function. <literal>(unset)</literal>
212
212
casting serves only as a <literal>NULL</literal>-type cast, for
213
213
completeness. It does not alter the variable it's casting.
214
-
The (unset) cast is deprecated as of PHP 7.2.0.
214
+
The (unset) cast is deprecated as of PHP 7.2.0, removed as of 8.0.0.
215
215
</para>
216
216
<programlisting role="php">
217
217
<![CDATA[
...
...
@@ -239,7 +239,14 @@ string(6) "Felipe"
239
239
&note.language-construct;
240
240
<note>
241
241
<para>
242
-
It is possible to unset even object properties visible in current context.
242
+
It is possible to unset object properties visible in the current context.
243
+
</para>
244
+
<para>
245
+
If declared,
246
+
<link linkend="object.get">__get()</link>
247
+
is called when accessing an unset property, and
248
+
<link linkend="object.set">__set()</link>
249
+
is called when setting an unset property.
243
250
</para>
244
251
</note>
245
252
<note>
246
253