Skip to content

Commit

Permalink
fix credits and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ManueldG committed Feb 17, 2025
1 parent 3c1ba1f commit a4f5686
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reference/filesystem/functions/file.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: e3ae86b439c1963f0cd6d262712e2d3f7e85bc37 Maintainer: Manuel dG Status: working -->
<!-- EN-Revision: e3ae86b439c1963f0cd6d262712e2d3f7e85bc37 Maintainer: ManueldG Status: working -->
<!-- CREDITS: cortesi-->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.file">
<refnamediv>
Expand Down Expand Up @@ -161,16 +161,16 @@
<programlisting role="php">
<![CDATA[
<?php
// Get a file into an array. In this example we'll go through HTTP to get
// the HTML source of a URL.
// inserisce una pagina web in un array e la stampa. In questo esempio useremo il protocollo
// HTTP per ottenere il sorgente di un URL
$lines = file('http://www.example.com/');
// Loop through our array, show HTML source as HTML source; and line numbers too.
// Ciclo attraverso l'array, si visualizzerà il sorgente come html ed i numeri di linea
foreach ($lines as $line_num => $line) {
echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n";
}
// Using the optional flags parameter
//Utilizzando i flag come parametro opzionale
$trimmed = file('somefile.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
?>
]]>
Expand Down

0 comments on commit a4f5686

Please sign in to comment.