mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed bug 16687
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@80367 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6a30fb2d2c
commit
6a6e593141
1 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.45 $ -->
|
||||
<!-- $Revision: 1.46 $ -->
|
||||
<chapter id="language.variables">
|
||||
<title>Variables</title>
|
||||
|
||||
|
@ -528,6 +528,13 @@ echo "$a $hello";
|
|||
is: <varname>${$a[1]}</varname> for the first case and
|
||||
<varname>${$a}[1]</varname> for the second.
|
||||
</simpara>
|
||||
|
||||
<simpara>
|
||||
Please note that variable variables cannot be used with PHP's new superglobals.
|
||||
This means you cannot do things like <varname>${$_GET}</varname>. If you are
|
||||
looking for a way to handle availability of superglobals and the old
|
||||
HTTP_*_VARS, you might want to try <link linkend="language.references">referencing</link> them.
|
||||
</simpara>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue