Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 1838

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>next</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Array Functions"
HREF="ref.array.html"><LINK
REL="PREVIOUS"
TITLE="natsort"
HREF="function.natsort.html"><LINK
REL="NEXT"
TITLE="pos"
HREF="function.pos.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation 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.natsort.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.pos.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.next"
></A
>next</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN9017"
></A
><P
>    (PHP 3, PHP 4 )</P
>next&nbsp;--&nbsp;
     Advance the internal array pointer of an array
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN9020"
></A
><H2
>Description</H2
>mixed <B
CLASS="methodname"
>next</B
> ( array array)<BR
></BR
><P
>&#13;     Returns the array element in the next place that's pointed by the
     internal array pointer, or <TT
CLASS="constant"
><B
>FALSE</B
></TT
> 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 <TT
CLASS="constant"
><B
>FALSE</B
></TT
>.
     <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, or elements that have a key
       value of 0 then this function will return <TT
CLASS="constant"
><B
>FALSE</B
></TT
>
       for these elements as well.  To properly traverse an array which
       may contain empty  elements or elements with key values of 0 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
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.natsort.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.pos.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>natsort</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.array.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pos</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>