mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Document bug #30935 (may not use Superglobals)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177506 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e9843205aa
commit
72abc2a3a6
1 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.compact">
|
||||
<refnamediv>
|
||||
|
@ -33,6 +33,16 @@
|
|||
<para>
|
||||
Any strings that are not set will simply be skipped.
|
||||
</para>
|
||||
<note>
|
||||
<title>Gotcha</title>
|
||||
<para>
|
||||
Because <link linkend="language.variables.variable">variable
|
||||
variables</link> may not be used with PHP's
|
||||
<link linkend="language.variables.superglobals">Superglobal
|
||||
arrays</link> within functions, the Superglobal arrays may not be passed
|
||||
into <function>compact</function>.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>compact</function> example</title>
|
||||
|
|
Loading…
Reference in a new issue