File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
reference/filesystem/functions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
<methodparam choice =" opt" ><type >bool</type ><parameter >use_include_path</parameter ><initializer >&false; </initializer ></methodparam >
15
15
<methodparam choice =" opt" ><type >resource</type ><parameter >context</parameter ></methodparam >
16
16
<methodparam choice =" opt" ><type >int</type ><parameter >offset</parameter ><initializer >0</initializer ></methodparam >
17
- <methodparam choice =" opt" ><type >int</type ><parameter >maxlen </parameter ></methodparam >
17
+ <methodparam choice =" opt" ><type >int</type ><parameter >length </parameter ></methodparam >
18
18
</methodsynopsis >
19
19
<para >
20
20
This function is similar to <function >file</function >, except that
21
21
<function >file_get_contents</function > returns the file in a
22
22
<type >string</type >, starting at the specified <parameter >offset</parameter >
23
- up to <parameter >maxlen </parameter > bytes. On failure,
23
+ up to <parameter >length </parameter > bytes. On failure,
24
24
<function >file_get_contents</function > will return &false; .
25
25
</para >
26
26
<para >
89
89
</listitem >
90
90
</varlistentry >
91
91
<varlistentry >
92
- <term ><parameter >maxlen </parameter ></term >
92
+ <term ><parameter >length </parameter ></term >
93
93
<listitem >
94
94
<para >
95
95
Maximum length of data read. The default is to read until end
113
113
<refsect1 role =" errors" >
114
114
&reftitle.errors;
115
115
<para >
116
- An <constant >E_WARNING</constant > level error is generated if <parameter >filename</parameter > cannot be found, <parameter >maxlength </parameter >
116
+ An <constant >E_WARNING</constant > level error is generated if <parameter >filename</parameter > cannot be found, <parameter >length </parameter >
117
117
is less than zero, or if seeking to the specified <parameter >offset</parameter > in the stream fails.
118
118
</para >
119
119
<para >
You can’t perform that action at this time.
0 commit comments