mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Magic constants in included file from a function (bug #41487)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241401 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cf7559c1a7
commit
9afb78925b
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.144 $ -->
|
||||
<!-- $Revision: 1.145 $ -->
|
||||
<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -1350,6 +1350,9 @@ echo "A $color $fruit"; // A green apple
|
|||
then all of the code contained in the called file will behave as
|
||||
though it had been defined inside that function. So, it will follow
|
||||
the variable scope of that function.
|
||||
An exception to this rule are <link
|
||||
linkend="language.constants.predefined">magic constants</link> which are
|
||||
evaluated by the parser before the include occurs.
|
||||
</simpara>
|
||||
<para>
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue