From fecbe442a942ef5c78e147ec40db074c31096e6e Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 20 Jan 2002 01:09:30 +0000 Subject: [PATCH] include: minor textual changes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68160 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index d8e51fb743..73d64ddb08 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1098,7 +1098,7 @@ require ('somefile.txt'); failure. include produces a Warning while require results in a Fatal Error. - In other words, don't hesitate to use require if you want + In other words, use require if you want a missing file to halt processing of the page. include does not behave this way, the script will continue regardless. Be sure to have an appropriate include_path setting as well. @@ -1292,7 +1292,7 @@ $var = 'PHP'; ?> -getfoo.php +testreturns.php - $bar is the value (1) because the include was successful. - Notice the difference between the above examples. The first uses + $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. A few other ways to "include" files into variables are with fopen, file or by using