From 72abc2a3a64036e2c9544fdad92a03aa48952971 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Tue, 18 Jan 2005 03:03:14 +0000 Subject: [PATCH] Document bug #30935 (may not use Superglobals) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177506 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/compact.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/reference/array/functions/compact.xml b/reference/array/functions/compact.xml index 22151afc88..a2e83b74c4 100644 --- a/reference/array/functions/compact.xml +++ b/reference/array/functions/compact.xml @@ -1,5 +1,5 @@ - + @@ -33,6 +33,16 @@ Any strings that are not set will simply be skipped. + + Gotcha + + Because variable + variables may not be used with PHP's + Superglobal + arrays within functions, the Superglobal arrays may not be passed + into compact. + + <function>compact</function> example