Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 10771

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>New Classes</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Migrating from PHP 5.1.x to PHP 5.2.x"
HREF="migration52.html"><LINK
REL="PREVIOUS"
TITLE="New Extensions"
HREF="migration52.new-extensions.html"><LINK
REL="NEXT"
TITLE="New Global Constants"
HREF="migration52.global-constants.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="section"
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 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="migration52.new-extensions.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>附录 B. Migrating from PHP 5.1.x to PHP 5.2.x</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="migration52.global-constants.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="migration52.classes"
>New Classes</A
></H1
><P
>&#13;   The following classes were introduced in PHP 5.2.0:
  </P
><P
></P
><UL
><LI
><P
>&#13;     <A
HREF="ref.datetime.html"
>DateTime</A
>
    </P
></LI
><LI
><P
>&#13;     <A
HREF="ref.datetime.html"
>DateTimeZone</A
>
    </P
></LI
><LI
><P
>&#13;     RegexIterator - extends FilterIterator; implements Iterator,
     Traversable, OuterIterator
    </P
><P
>&#13;     Constants:
    </P
><P
></P
><UL
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RegexIterator::ALL_MATCHES</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RegexIterator::GET_MATCH</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RegexIterator::MATCH</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RegexIterator::REPLACE</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RegexIterator::SPLIT</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RegexIterator::USE_KEY</B
></TT
>
      </P
></LI
></UL
><P
>&#13;     Properties:
    </P
><P
></P
><UL
><LI
><P
>&#13;       public <SPAN
CLASS="property"
>replacement</SPAN
>
      </P
></LI
></UL
><P
>&#13;     Methods:
    </P
><P
></P
><UL
><LI
><P
>&#13;       RegexIterator::__construct(Iterator it, string regex [, int mode [, int flags [, int preg_flags]]])
       - Create an RegexIterator from another iterator and a regular expression
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::accept()
       - Match (string)current() against regular expression
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::getFlags()
       - Returns current operation flags
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::getMode()
       - Returns current operation mode
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::getPregFlags()
       - Returns current PREG flags (if in use or <TT
CLASS="constant"
><B
>NULL</B
></TT
>)
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::setFlags(int new_flags)
       - Set operation flags
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::setMode(int new_mode)
       - Set new operation mode
      </P
></LI
><LI
><P
>&#13;       bool RegexIterator::setPregFlags(int new_flags)
       - Set PREG flags
      </P
></LI
></UL
></LI
><LI
><P
>&#13;     RecursiveRegexIterator
    </P
><P
>&#13;     Constants:
    </P
><P
></P
><UL
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RecursiveRegexIterator::ALL_MATCHES</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RecursiveRegexIterator::GET_MATCH</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RecursiveRegexIterator::MATCH</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RecursiveRegexIterator::REPLACE</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RecursiveRegexIterator::SPLIT</B
></TT
>
      </P
></LI
><LI
><P
>&#13;       <TT
CLASS="constant"
><B
>RecursiveRegexIterator::USE_KEY</B
></TT
>
      </P
></LI
></UL
><P
>&#13;     Methods:
    </P
><P
></P
><UL
><LI
><P
>&#13;       RecursiveRegexIterator::__construct(RecursiveIterator it, string regex [, int mode [, int flags [, int preg_flags]]])
       - Create an RecursiveRegexIterator from another recursive iterator and
       a regular expression
      </P
></LI
><LI
><P
>&#13;       RecursiveRegexIterator RecursiveRegexIterator::getChildren()
       - Return the inner iterator's children contained in a
       RecursiveRegexIterator
      </P
></LI
><LI
><P
>&#13;       bool RecursiveRegexIterator::hasChildren()
       - Check whether the inner iterator's current element has children
      </P
></LI
></UL
></LI
></UL
></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="migration52.new-extensions.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="migration52.global-constants.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>New Extensions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="migration52.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>New Global Constants</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>