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