Sophie

Sophie

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

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 Methods</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 Functions"
HREF="migration52.functions.html"><LINK
REL="NEXT"
TITLE="Removed Extensions"
HREF="migration52.removed-extensions.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.functions.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.removed-extensions.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="migration52.methods"
>New Methods</A
></H1
><P
>&#13;   New methods were introduced in 5.2.0:
  </P
><P
><A
HREF="ref.dom.html"
>dom</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;     <A
HREF="function.dom-domdocument-registernodeclass.html"
><B
CLASS="function"
>DOMDocument::registerNodeClass()</B
></A
>
     - Register extended class used to create base node type
    </P
></LI
><LI
><P
>&#13;     <A
HREF="function.dom-domelement-setidattribute.html"
><B
CLASS="function"
>DOMElement::setIDAttribute()</B
></A
>
     - Declares the attribute specified by name to be of type ID
    </P
></LI
><LI
><P
>&#13;     <A
HREF="function.dom-domelement-setidattributenode.html"
><B
CLASS="function"
>DOMElement::setIDAttributeNode()</B
></A
>
     - Declares the attribute specified by node to be of type ID
    </P
></LI
><LI
><P
>&#13;     <A
HREF="function.dom-domelement-setidattributens.html"
><B
CLASS="function"
>DOMElement::setIDAttributeNS()</B
></A
>
     - Declares the attribute specified by local name and namespace URI to be
     of type ID
    </P
></LI
><LI
><P
>&#13;     DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]])
     - Canonicalize nodes to a string
    </P
></LI
><LI
><P
>&#13;     DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]])
     - Canonicalize nodes to a file
    </P
></LI
><LI
><P
>&#13;     DOMNode::getNodePath()
     - Gets an xpath for a node
    </P
></LI
></UL
><P
><A
HREF="ref.soap.html"
>soap</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;     SoapServer::setObject(object obj)
     - Sets object which will handle SOAP requests
    </P
></LI
></UL
><P
><A
HREF="ref.spl.html"
>spl</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;     int ArrayObject::asort(void)
     - Sort the entries by values
    </P
></LI
><LI
><P
>&#13;     int ArrayObject::ksort(void)
     - Sort the entries by key
    </P
></LI
><LI
><P
>&#13;     int ArrayObject::natcasesort(void)
     - Sort the entries by key using case insensitive
     "natural order" algorithm.
    </P
></LI
><LI
><P
>&#13;     int ArrayObject::natsort(void)
     - Sort the entries by values using "natural order" algorithm.
    </P
></LI
><LI
><P
>&#13;     int ArrayObject::uasort(callback cmp_function)
     - Sort the entries by values user defined function
    </P
></LI
><LI
><P
>&#13;     int ArrayObject::uksort(callback cmp_function)
     - Sort the entries by key using user defined function.
    </P
></LI
><LI
><P
>&#13;     ArrayIterator AppendIterator::getArrayIterator()
     - Get access to inner ArrayIterator
    </P
></LI
><LI
><P
>&#13;     int AppendIterator::getIteratorIndex()
     - Get index of iterator
    </P
></LI
><LI
><P
>&#13;     bool CachingIterator::getCache()
     - Return the cache
    </P
></LI
><LI
><P
>&#13;     int CachingIterator::getFlags()
     - Return the internal flags
    </P
></LI
><LI
><P
>&#13;     bool CachingIterator::offsetExists(mixed index)
     - Return whether the requested index exists
    </P
></LI
><LI
><P
>&#13;     string CachingIterator::offsetGet(mixed index)
     - Return the internal cache if used
    </P
></LI
><LI
><P
>&#13;     void CachingIterator::offsetSet(mixed index, mixed newval)
     - Set given index in cache
    </P
></LI
><LI
><P
>&#13;     void CachingIterator::offsetUnset(mixed index)
     - Unset given index in cache
    </P
></LI
><LI
><P
>&#13;     void CachingIterator::setFlags()
     - Set the internal flags
    </P
></LI
><LI
><P
>&#13;     array("delimiter" =&#62;, "enclosure" =&#62;) SplFileObject::getCsvControl(void)
     - Get the delimiter and enclosure character used in fgetcsv
    </P
></LI
><LI
><P
>&#13;     void SplFileObject::setCsvControl([string delimiter = ',' [, string enclosure = '"']])
     - Set the delimiter and enclosure character used in fgetcsv
    </P
></LI
><LI
><P
>&#13;     boolean XMLReader::setSchema(string filename)
     - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read()
    </P
></LI
></UL
><P
><A
HREF="ref.zip.html"
>zip</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;     bool ZipArchive::addEmptyDir(string dirname)
     - Creates an empty directory in the archive
    </P
></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.functions.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.removed-extensions.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>New Functions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="migration52.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Removed Extensions</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>