mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
whitespace, spelling, grammar
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@319558 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
63034344a9
commit
7cf535d52a
3 changed files with 29 additions and 23 deletions
|
@ -33,13 +33,13 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>SplFixedArray::count</function> example</title>
|
||||
<title><methodname>SplFixedArray::count</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$array = new SplFixedArray(5);
|
||||
echo $array->count() . "\n";
|
||||
echo count($array) . "\n";
|
||||
$array = new SplFixedArray(5);
|
||||
echo $array->count() . "\n";
|
||||
echo count($array) . "\n";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -56,19 +56,23 @@
|
|||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<para>
|
||||
This method is functionally equivalent to <function>SplFixedArray::getSize</function>.
|
||||
</para>
|
||||
<para>
|
||||
The count of elements is always equal to the set size because all values are initially
|
||||
initialized with &null;.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
This method is functionally equivalent to <methodname>SplFixedArray::getSize</methodname>.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
The count of elements is always equal to the set size because all values are initially
|
||||
initialized with &null;.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<simplelist>
|
||||
<member><function>SplFixedArray::getSize</function></member>
|
||||
<member><methodname>SplFixedArray::getSize</methodname></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -33,14 +33,14 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>SplFixedArray::getSize</function> example</title>
|
||||
<title><methodname>SplFixedArray::getSize</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$array = new SplFixedArray(5);
|
||||
echo $array->getSize()."\n";
|
||||
$array->setSize(10);
|
||||
echo $array->getSize()."\n";
|
||||
$array = new SplFixedArray(5);
|
||||
echo $array->getSize()."\n";
|
||||
$array->setSize(10);
|
||||
echo $array->getSize()."\n";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -56,15 +56,17 @@
|
|||
</refsect1>
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<para>
|
||||
This method is functionally equivalent to <function>SplFixedArray::count</function>
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
This method is functionally equivalent to <methodname>SplFixedArray::count</methodname>
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<simplelist>
|
||||
<member><function>SplFixedArray::count</function></member>
|
||||
<member><methodname>SplFixedArray::count</methodname></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<para>
|
||||
Change the size of an array to the new size of <parameter>size</parameter>. If
|
||||
<parameter>size</parameter> is less than the current array size, any values after the new size
|
||||
will be discarded. If <parameter>size</parameter> is greather than the current array size, the
|
||||
will be discarded. If <parameter>size</parameter> is greater than the current array size, the
|
||||
array will be padded with &null; values.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -28,7 +28,7 @@
|
|||
<term><parameter>size</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The new array size. This should be a value between <literal>0</literal> and <constant>PHP_INT_MAX</constant>
|
||||
The new array size. This should be a value between <literal>0</literal> and <constant>PHP_INT_MAX</constant>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue