From de8441e907b3de411c61d40d180cc8c7141624b9 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 27 Jul 2004 21:00:22 +0000 Subject: [PATCH] Ops, it was already documented git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164491 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 87a9cd3622..f2aaf47aed 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1424,11 +1424,6 @@ if ($condition) { variables within those tags and they will be introduced at whichever point the file was included. - - If there is no return statement inside an included file, implicit - return 1; is added at the end of the file. If the file - can't be included, &false; is returned. - Because include is a special language costruct, parentheses are not needed around its argument. Take care when comparing @@ -1502,6 +1497,10 @@ echo $bar; // prints 1 $bar is the value 1 because the include was successful. Notice the difference between the above examples. The first uses return within the included file while the other does not. + If the file can't be included, &false; is returned and + E_WARNING is issued. + + A few other ways to "include" files into variables are with fopen, file or by using include along with