diff --git a/reference/filesystem/functions/file.xml b/reference/filesystem/functions/file.xml
index 2be3e227fc8d..2bdab9c77561 100644
--- a/reference/filesystem/functions/file.xml
+++ b/reference/filesystem/functions/file.xml
@@ -137,9 +137,6 @@ foreach ($lines as $line_num => $line) {
echo "Line #{$line_num} : " . htmlspecialchars($line) . "
\n";
}
-// Another example, let's get a web page into a string. See also file_get_contents().
-$html = implode('', file('http://www.example.com/'));
-
// Using the optional flags parameter since PHP 5
$trimmed = file('somefile.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
?>
@@ -158,11 +155,11 @@ $trimmed = file('somefile.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
&reftitle.seealso;
+ file_get_contents
readfile
fopen
fsockopen
popen
- file_get_contents
include
stream_context_create
diff --git a/reference/xml/functions/xml-parse-into-struct.xml b/reference/xml/functions/xml-parse-into-struct.xml
index 8844cbb0468f..faac6b47a674 100644
--- a/reference/xml/functions/xml-parse-into-struct.xml
+++ b/reference/xml/functions/xml-parse-into-struct.xml
@@ -168,7 +168,7 @@ Array
Event-driven parsing (based on the expat library) can get
complicated when you have an XML document that is complex.
This function does not produce a DOM style object, but it
- generates structures amenable of being transversed in a tree
+ generates structures amenable of being traversed in a tree
fashion. Thus, we can create objects representing the data
in the XML file easily. Let's consider the following XML file
representing a small database of aminoacids information:
@@ -224,7 +224,7 @@ class AminoAcid {
function readDatabase($filename)
{
// read the XML database of aminoacids
- $data = implode("", file($filename));
+ $data = file_get_contents($filename);
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
diff --git a/reference/zlib/functions/gzencode.xml b/reference/zlib/functions/gzencode.xml
index d2b0c3fac598..68b0ce279fa3 100644
--- a/reference/zlib/functions/gzencode.xml
+++ b/reference/zlib/functions/gzencode.xml
@@ -88,11 +88,9 @@
]]>