cvs: phpdoc /en/reference/spl datastructures.xml splfixedarray.xml /en/reference/spl/splfixedarray construct.xml count.xml current.xml fromarray.xml
getsize.xml key.xml next.xml offsetexists.xml offsetget.xml offsetset.xml offsetunset.xml rewind.xml setsize.xml toarray.xml valid.xml

From: Date: Sat, 11 Apr 2009 21:04:53 +0000
Subject: cvs: phpdoc /en/reference/spl datastructures.xml splfixedarray.xml /en/reference/spl/splfixedarray construct.xml count.xml current.xml fromarray.xml
getsize.xml key.xml next.xml offsetexists.xml offsetget.xml offsetset.xml offsetunset.xml rewind.xml setsize.xml toarray.xml valid.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3683@lists.php.net to get a copy of this message
colder Sat Apr 11 21:04:53 2009 UTC Added files: /phpdoc/en/reference/spl splfixedarray.xml /phpdoc/en/reference/spl/splfixedarray construct.xml count.xml current.xml fromarray.xml getsize.xml key.xml next.xml offsetexists.xml offsetget.xml offsetset.xml offsetunset.xml rewind.xml setsize.xml toarray.xml valid.xml Modified files: /phpdoc/en/reference/spl datastructures.xml Log: Document splfixedarray

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/datastructures.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/spl/datastructures.xml diff -u phpdoc/en/reference/spl/datastructures.xml:1.4 phpdoc/en/reference/spl/datastructures.xml:1.5 --- phpdoc/en/reference/spl/datastructures.xml:1.4 Sat Nov 15 17:21:02 2008 +++ phpdoc/en/reference/spl/datastructures.xml Sat Apr 11 21:04:53 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <part xml:id="spl.datastructures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -56,6 +56,23 @@ </itemizedlist> </section> + + <section> + <title>Arrays</title> + + <para> + Arrays are structures that store the data in a continuous way, accessible + via indexes. Don't confuse them with PHP arrays: PHP arrays are in fact + implemented as ordered hashtables. + </para> + + <itemizedlist> + <listitem> + <simpara><classname>SplFixedArray</classname></simpara> + </listitem> + </itemizedlist> + + </section> </partintro> &reference.spl.spldoublylinkedlist; @@ -67,6 +84,8 @@ &reference.spl.splminheap; &reference.spl.splpriorityqueue; + &reference.spl.splfixedarray; + </part> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray.xml +++ phpdoc/en/reference/spl/splfixedarray.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.splfixedarray" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The SplFixedArray class</title> <titleabbrev>SplFixedArray</titleabbrev> <partintro> <!-- {{{ splfixedarray intro --> <section xml:id="splfixedarray.intro"> &reftitle.intro; <para> The SplFixedArray class provides the main functionalities of array. The main differences between a SplFixedArray and a normal PHP array is that the SplFixedArray is of fixed length and allows only integers within the range as indexes. The advantage is that it allows a faster array implementation. </para> </section> <!-- }}} --> <section xml:id="splfixedarray.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>SplFixedArray</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>SplFixedArray</classname> </ooclass> <oointerface> <interfacename>Iterator</interfacename> </oointerface> <oointerface> <interfacename>ArrayAccess</interfacename> </oointerface> <oointerface> <interfacename>Countable</interfacename> </oointerface> </classsynopsisinfo> <!-- }}} --> <!-- {{{ If the property is documented below (xml:id=splfixedarray.props) use this <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>public</modifier> <type>string</type> <varname linkend="splfixedarray.props.name">name</varname> </fieldsynopsis> }}} --> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splfixedarray')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splfixedarray')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> </section> <!-- {{{ splfixedarray examples --> <section xml:id="splfixedarray.examples"> &reftitle.examples; <para> <example> <title><classname>SplFixedArray</classname> usage example</title> <programlisting role="php"> <![CDATA[ <?php // Initialize the array with a fixed length $array = new SplFixedArray(5); $array[1] = 2; $array[4] = "foo"; var_dump($array[0]); // NULL var_dump($array[1]); // int(2) var_dump($array["4"]); // string(3) "foo" // Increase the size of the array to 10 $array->setSize(10); $array[9] = "asdf"; // Shrink the array to a size of 2 $array->setSize(2); // The following lines throw a RuntimeException: Index invalid or out of range try { var_dump($array["non-numeric"]); } catch(RuntimeException $re) { echo "RuntimeException: ".$re->getMessage()."\n"; } try { var_dump($array[-1]); } catch(RuntimeException $re) { echo "RuntimeException: ".$re->getMessage()."\n"; } try { var_dump($array[5]); } catch(RuntimeException $re) { echo "RuntimeException: ".$re->getMessage()."\n"; } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ NULL int(2) string(3) "foo" RuntimeException: Index invalid or out of range RuntimeException: Index invalid or out of range RuntimeException: Index invalid or out of range ]]> </screen> </example> </para> </section> <!-- }}} --> <!-- {{{ splfixedarray properties <section xml:id="splfixedarray.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="splfixedarray.props.name"> <term><varname>name</varname></term> <listitem> <para>Prop description</para> </listitem> </varlistentry> </variablelist> </section> }}} --> </partintro> &reference.spl.entities.splfixedarray; </phpdoc:classref> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/construct.xml +++ phpdoc/en/reference/spl/splfixedarray/construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.construct" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::__construct</refname> <refpurpose>Constructs a new fixed array</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>SplFixedArray::__construct</methodname> <methodparam><type>int</type><parameter>size</parameter></methodparam> </constructorsynopsis> <para> This constructs a new empty fixed array. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>size</parameter></term> <listitem> <para> The size of the fixed array, defaults to 0. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>SplFixedArray::__construct</function> example</title> <programlisting role="php"> <![CDATA[ <?php $array = new SplFixedArray(5); $array[1] = 2; $array[4] = "foo"; foreach($array as $v) { var_dump($v); } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ NULL int(2) NULL NULL string(3) "foo" ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/count.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/count.xml +++ phpdoc/en/reference/spl/splfixedarray/count.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.count" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::count</refname> <refpurpose>Returns the size of the array.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>int</type><methodname>SplFixedArray::count</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the size of the array. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/current.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/current.xml +++ phpdoc/en/reference/spl/splfixedarray/current.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.current" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::current</refname> <refpurpose>Return current array entry</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>mixed</type><methodname>SplFixedArray::current</methodname> <void/> </methodsynopsis> <para> Get the current array element. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> The current element value. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/fromarray.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/fromarray.xml +++ phpdoc/en/reference/spl/splfixedarray/fromarray.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.fromarray" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::fromArray</refname> <refpurpose>Description.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <modifier>static</modifier> <type>SplFixedArray</type><methodname>SplFixedArray::fromArray</methodname> <methodparam><type>array</type><parameter>array</parameter></methodparam> <methodparam choice="opt"><type>boolean</type><parameter>save_indexes</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>array</parameter></term> <listitem> <para> The array to import. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>save_indexes</parameter></term> <listitem> <para> Try to save the numeric indexes used in the original array. Defaults to &true;. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns an instance of <classname>SplFixedArray</classname> containing the array content. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>SplFixedArray::fromArray</function> example</title> <programlisting role="php"> <![CDATA[ <?php $fa = SplFixedArray::fromArray(array(1 => 1, 0 => 2, 3 => 3)); var_dump($fa); $fa = SplFixedArray::fromArray(array(1 => 1, 0 => 2, 3 => 3), false); var_dump($fa); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ object(SplFixedArray)#1 (4) { [0]=> int(2) [1]=> int(1) [2]=> NULL [3]=> int(3) } object(SplFixedArray)#2 (3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/getsize.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/getsize.xml +++ phpdoc/en/reference/spl/splfixedarray/getsize.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.getsize" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::getSize</refname> <refpurpose>Gets the size of the array.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>int</type><methodname>SplFixedArray::getSize</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the size of the array. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>SplFixedArray::getSize</function> example</title> <programlisting role="php"> <![CDATA[ <?php $array = new SplFixedArray(5); echo $array->getSize()."\n"; $array->setSize(10); echo $array->getSize()."\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ 5 10 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/key.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/key.xml +++ phpdoc/en/reference/spl/splfixedarray/key.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.key" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::key</refname> <refpurpose>Return current array index</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>int</type><methodname>SplFixedArray::key</methodname> <void/> </methodsynopsis> <para> This function returns the current array index </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> The current array index. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/next.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/next.xml +++ phpdoc/en/reference/spl/splfixedarray/next.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.next" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::next</refname> <refpurpose>Move to next entry</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>SplFixedArray::next</methodname> <void/> </methodsynopsis> <para> Move the iterator to the next array entry. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/offsetexists.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/offsetexists.xml +++ phpdoc/en/reference/spl/splfixedarray/offsetexists.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.offsetexists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::offsetExists</refname> <refpurpose>Returns whether the requested $index exists</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>bool</type><methodname>SplFixedArray::offsetExists</methodname> <methodparam><type>int</type><parameter>index</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>index</parameter></term> <listitem> <para> The index being checked. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &true; if the requested <parameter>index</parameter> exists, otherwise &false; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/offsetget.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/offsetget.xml +++ phpdoc/en/reference/spl/splfixedarray/offsetget.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.offsetget" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::offsetGet</refname> <refpurpose>Returns the value at the specified $index</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>mixed</type><methodname>SplFixedArray::offsetGet</methodname> <methodparam><type>int</type><parameter>index</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>index</parameter></term> <listitem> <para> The index with the value. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> The value at the specified <parameter>index</parameter>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/offsetset.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/offsetset.xml +++ phpdoc/en/reference/spl/splfixedarray/offsetset.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.offsetset" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::offsetSet</refname> <refpurpose>Sets the value at the specified $index to $newval</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>SplFixedArray::offsetSet</methodname> <methodparam><type>int</type><parameter>index</parameter></methodparam> <methodparam><type>mixed</type><parameter>newval</parameter></methodparam> </methodsynopsis> <para> Sets the value at the specified <parameter>index</parameter> to <parameter>newval</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>index</parameter></term> <listitem> <para> The index being set. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>newval</parameter></term> <listitem> <para> The new value for the <parameter>index</parameter>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/offsetunset.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/offsetunset.xml +++ phpdoc/en/reference/spl/splfixedarray/offsetunset.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.offsetunset" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::offsetUnset</refname> <refpurpose>Unsets the value at the specified $index</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>SplFixedArray::offsetUnset</methodname> <methodparam><type>int</type><parameter>index</parameter></methodparam> </methodsynopsis> <para> Unsets the value at the specified index. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>index</parameter></term> <listitem> <para> The index being unset. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/rewind.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/rewind.xml +++ phpdoc/en/reference/spl/splfixedarray/rewind.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.rewind" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::rewind</refname> <refpurpose>Rewind iterator back to the start</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>SplFixedArray::rewind</methodname> <void/> </methodsynopsis> <para> This rewinds the iterator to the beginning. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/setsize.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/setsize.xml +++ phpdoc/en/reference/spl/splfixedarray/setsize.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.setsize" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::setSize</refname> <refpurpose>Change the size of an array.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>int</type><methodname>SplFixedArray::setSize</methodname> <methodparam><type>int</type><parameter>size</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>size</parameter></term> <listitem> <para> The new array size. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>SplFixedArray::setSize</function> example</title> <programlisting role="php"> <![CDATA[ <?php $array = new SplFixedArray(5); echo $array->getSize()."\n"; $array->setSize(10); echo $array->getSize()."\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ 5 10 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/toarray.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/toarray.xml +++ phpdoc/en/reference/spl/splfixedarray/toarray.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.toarray" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::toArray</refname> <refpurpose>Returns a PHP array from the fixed array.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>array</type><methodname>SplFixedArray::toArray</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns a PHP array similar to the fixed array. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>SplFixedArray::toArray</function> example</title> <programlisting role="php"> <![CDATA[ <?php $fa = new SplFixedArray(3); $fa[0] = 0; $fa[2] = 2; var_dump($fa->toArray()); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ array(3) { [0]=> int(0) [1]=> NULL [2]=> int(2) } ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfixedarray/valid.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/splfixedarray/valid.xml +++ phpdoc/en/reference/spl/splfixedarray/valid.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="splfixedarray.valid" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::valid</refname> <refpurpose>Check whether the array contains more elements</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>bool</type><methodname>SplFixedArray::valid</methodname> <void/> </methodsynopsis> <para> Checks if the array contains any more elements. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns &true; if the array contains any more elements, &false; otherwise. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.cvs (#3683) next »