Reverted two changes to the old functions/ directory and applied Rasmus'

fix to en/reference/functions/fgetcsv.xml.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@154783 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ken 2004-03-28 18:04:15 +00:00
parent 968a95445a
commit 63b76131f1
2 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@
instead -->
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.146 $ -->
<!-- $Revision: 1.147 $ -->
<reference id="ref.filesystem">
<title>Filesystem functions</title>
<titleabbrev>Filesystem</titleabbrev>
@ -562,7 +562,7 @@ $df = disk_total_space("/"); // $df contains the total number of
<![CDATA[
$row = 1;
$fp = fopen ("test.csv","r");
while (($data = fgetcsv ($fp, 1000, ",")) !== FALSE) {
while ($data = fgetcsv ($fp, 1000, ",")) {
$num = count ($data);
print "<p> $num fields in line $row: <br>";
$row++;
@ -1959,7 +1959,7 @@ if($fp){
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
</methodsynopsis>
<para>
Returns &true; if the filename exists and is a regular file, &false; otherwise.
Returns &true; if the filename exists and is a regular file.
</para>
<para>
The results of this function are cached. See

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fgetcsv">
<refnamediv>
@ -58,7 +58,7 @@
<?php
$row = 1;
$handle = fopen("test.csv", "r");
while ($data = fgetcsv($handle, 1000, ",")) {
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$num = count($data);
echo "<p> $num fields in line $row: <br />\n";
$row++;