mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
968a95445a
commit
63b76131f1
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue