From c7c5b9cbe2f3b77179ebc08ca87a62c372bd24b2 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Thu, 12 Jan 2012 05:23:03 +0000 Subject: [PATCH] Clarified highly-misleading (unset) casting example. Resolves bug #55164. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@322117 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/unset.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/reference/var/functions/unset.xml b/reference/var/functions/unset.xml index ff510e6cc0..6fb29ad778 100644 --- a/reference/var/functions/unset.xml +++ b/reference/var/functions/unset.xml @@ -228,16 +228,30 @@ unset($foo1, $foo2, $foo3); - Using (unset) casting + Using <literal>(unset)</literal> casting + + (unset) casting is often confused with the + unset function. (unset) + casting serves only as a NULL-type cast, for + completeness. It does not alter the variable it's casting. + ]]> + &example.outputs; + + +