<!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="Manual do 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" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="migration52.new-extensions.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Apêndice 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" >Próxima</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 > The following classes were introduced in PHP 5.2.0: </P ><P ></P ><UL ><LI ><P > <A HREF="ref.datetime.html" >DateTime</A > </P ></LI ><LI ><P > <A HREF="ref.datetime.html" >DateTimeZone</A > </P ></LI ><LI ><P > RegexIterator - extends FilterIterator; implements Iterator, Traversable, OuterIterator </P ><P > Constants: </P ><P ></P ><UL ><LI ><P > <TT CLASS="constant" ><B >RegexIterator::ALL_MATCHES</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RegexIterator::GET_MATCH</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RegexIterator::MATCH</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RegexIterator::REPLACE</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RegexIterator::SPLIT</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RegexIterator::USE_KEY</B ></TT > </P ></LI ></UL ><P > Properties: </P ><P ></P ><UL ><LI ><P > public <SPAN CLASS="property" >replacement</SPAN > </P ></LI ></UL ><P > Methods: </P ><P ></P ><UL ><LI ><P > 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 > bool RegexIterator::accept() - Match (string)current() against regular expression </P ></LI ><LI ><P > bool RegexIterator::getFlags() - Returns current operation flags </P ></LI ><LI ><P > bool RegexIterator::getMode() - Returns current operation mode </P ></LI ><LI ><P > bool RegexIterator::getPregFlags() - Returns current PREG flags (if in use or <TT CLASS="constant" ><B >NULL</B ></TT >) </P ></LI ><LI ><P > bool RegexIterator::setFlags(int new_flags) - Set operation flags </P ></LI ><LI ><P > bool RegexIterator::setMode(int new_mode) - Set new operation mode </P ></LI ><LI ><P > bool RegexIterator::setPregFlags(int new_flags) - Set PREG flags </P ></LI ></UL ></LI ><LI ><P > RecursiveRegexIterator </P ><P > Constants: </P ><P ></P ><UL ><LI ><P > <TT CLASS="constant" ><B >RecursiveRegexIterator::ALL_MATCHES</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RecursiveRegexIterator::GET_MATCH</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RecursiveRegexIterator::MATCH</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RecursiveRegexIterator::REPLACE</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RecursiveRegexIterator::SPLIT</B ></TT > </P ></LI ><LI ><P > <TT CLASS="constant" ><B >RecursiveRegexIterator::USE_KEY</B ></TT > </P ></LI ></UL ><P > Methods: </P ><P ></P ><UL ><LI ><P > 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 > RecursiveRegexIterator RecursiveRegexIterator::getChildren() - Return the inner iterator's children contained in a RecursiveRegexIterator </P ></LI ><LI ><P > 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" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="migration52.global-constants.html" ACCESSKEY="N" >Próxima</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" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >New Global Constants</TD ></TR ></TABLE ></DIV ></BODY ></HTML >