Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ebb1914cf182a88528b4547490db1dd8 > files > 1174

kdewebdev-quanta-doc-3.5.9-2mdv2008.1.x86_64.rpm

<HTML
><HEAD
><TITLE
>next</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="manual.html"><LINK
REL="UP"
TITLE="Array functions"
HREF="ref.array.html"><LINK
REL="PREVIOUS"
TITLE="list"
HREF="function.list.html"><LINK
REL="NEXT"
TITLE="pos"
HREF="function.pos.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.list.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.pos.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.next"
>next</A
></H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN4258"
></A
>next -- 
     Advance the internal array pointer of an array
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN4261"
></A
><H2
>Description</H2
><DIV
CLASS="funcsynopsis"
><P
></P
><CODE
CLASS="FUNCDEF"
>mixed next</CODE
>(array array);<P
></P
></DIV
><P
>&#13;     Returns the array element in the next place that's pointed by the
     internal array pointer, or false if there are no more elements.
    </P
><P
>&#13;     <B
CLASS="function"
>next()</B
> behaves like
     <A
HREF="function.current.html"
><B
CLASS="function"
>current()</B
></A
>, with one difference.  It advances
     the internal array pointer one place forward before returning the
     element.  That means it returns the next array element and
     advances the internal array pointer by one.  If advancing the
     internal array pointer results in going beyond the end of the
     element list, <B
CLASS="function"
>next()</B
> returns false.
     <DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
BORDER="1"
WIDTH="100%"
><TR
><TD
ALIGN="CENTER"
><B
>Warning</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
>&#13;       If the array contains empty elements then this function will
       return false for these elements as well.  To properly traverse
       an array which may contain empty elements see the
       <A
HREF="function.each.html"
><B
CLASS="function"
>each()</B
></A
> function.
      </P
></TD
></TR
></TABLE
></DIV
>
    </P
><P
>&#13;     See also:
     <A
HREF="function.current.html"
><B
CLASS="function"
>current()</B
></A
>, <A
HREF="function.end.html"
><B
CLASS="function"
>end()</B
></A
>
     <A
HREF="function.prev.html"
><B
CLASS="function"
>prev()</B
></A
> and <A
HREF="function.reset.html"
><B
CLASS="function"
>reset()</B
></A
>
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.list.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="manual.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.pos.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>list</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.array.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pos</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>