Sophie

Sophie

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

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
>新函数</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="从 PHP 4 移植到 PHP 5"
HREF="migration5.html"><LINK
REL="PREVIOUS"
TITLE="移植配置文件"
HREF="migration5.configuration.html"><LINK
REL="NEXT"
TITLE="新指令"
HREF="migration5.newconf.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="migration5.configuration.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>附录 C. 从 PHP 4 移植到 PHP 5</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="migration5.newconf.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="migration5.functions"
>新函数</A
></H1
><P
>&#13;    PHP 5 有了些新函数。下面是列表:
   </P
><P
><A
HREF="ref.array.html"
>Arrays</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.array-combine.html"
><B
CLASS="function"
>array_combine()</B
></A
> -
      用一个数组作为键名,另一个数组作为值创建一个新数组
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-diff-uassoc.html"
><B
CLASS="function"
>array_diff_uassoc()</B
></A
> -
      计算数组的差别,并用用户提供的回调函数作附加的索引检查
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-udiff.html"
><B
CLASS="function"
>array_udiff()</B
></A
> -
      用回调函数比较数据来计算数组的差别
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-udiff-assoc.html"
><B
CLASS="function"
>array_udiff_assoc()</B
></A
> -
      计算数组的差别并作附加的索引检查。用回调函数来比较数据
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-udiff-uassoc.html"
><B
CLASS="function"
>array_udiff_uassoc()</B
></A
> -
      计算数组的差别并作附加的索引检查。数据的比较和索引检查都用回调函数来完成
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-walk-recursive.html"
><B
CLASS="function"
>array_walk_recursive()</B
></A
> -
      对数组的每个成员递归使用用户函数
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-uintersect-assoc.html"
><B
CLASS="function"
>array_uintersect_assoc()</B
></A
> -
      计算数组的交集并作附加的索引检查。用回调函数来比较数据
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-uintersect-uassoc.html"
><B
CLASS="function"
>array_uintersect_uassoc()</B
></A
> -
      计算数组的交集并作附加的索引检查。数据和索引都用回调函数来比较
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-uintersect.html"
><B
CLASS="function"
>array_uintersect()</B
></A
> -
      计算数组的交集。用回调函数来比较数据
     </P
></LI
></UL
><P
><A
HREF="ref.ibase.html"
>InterBase</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.ibase-affected-rows.html"
><B
CLASS="function"
>ibase_affected_rows()</B
></A
> -
      返回前一个查询影响到的行的数目
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-backup.html"
><B
CLASS="function"
>ibase_backup()</B
></A
> -
      在服务管理器中发起一个后台任务并立即返回
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-commit-ret.html"
><B
CLASS="function"
>ibase_commit_ret()</B
></A
> -
      提交一个事务但不关闭
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-db-info.html"
><B
CLASS="function"
>ibase_db_info()</B
></A
> -
      请求有关数据库的统计信息
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-drop-db.html"
><B
CLASS="function"
>ibase_drop_db()</B
></A
> -
      删除一个数据库
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-errcode.html"
><B
CLASS="function"
>ibase_errcode()</B
></A
> -
      返回一个错误代码
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-free-event-handler.html"
><B
CLASS="function"
>ibase_free_event_handler()</B
></A
> -
      取消一个已注册的事件句柄
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-gen-id.html"
><B
CLASS="function"
>ibase_gen_id()</B
></A
> -
      递增指定的发生器并返回其新值
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-maintain-db.html"
><B
CLASS="function"
>ibase_maintain_db()</B
></A
> -
      在数据库服务器上执行一条维护命令
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-name-result.html"
><B
CLASS="function"
>ibase_name_result()</B
></A
> -
      给结果集指定一个名字
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-num-params.html"
><B
CLASS="function"
>ibase_num_params()</B
></A
> -
      返回一个准备好的查询的参数数目
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-param-info.html"
><B
CLASS="function"
>ibase_param_info()</B
></A
> -
      返回一个准备好的查询的参数信息
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-restore.html"
><B
CLASS="function"
>ibase_restore()</B
></A
> -
      在服务管理器中发起一个还原任务并立即返回
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-rollback-ret.html"
><B
CLASS="function"
>ibase_rollback_ret()</B
></A
> -
      回卷一笔事务并保留事务上下文
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-server-info.html"
><B
CLASS="function"
>ibase_server_info()</B
></A
> -
      请求有关数据库服务器的统计信息
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-service-attach.html"
><B
CLASS="function"
>ibase_service_attach()</B
></A
> -
      连接到服务管理器
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-service-detach.html"
><B
CLASS="function"
>ibase_service_detach()</B
></A
> -
      从服务管理器断开
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-set-event-handler.html"
><B
CLASS="function"
>ibase_set_event_handler()</B
></A
> -
      注册一个当事件发布时要调用的回调函数
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-wait-event.html"
><B
CLASS="function"
>ibase_wait_event()</B
></A
> -
      等待数据库发布一条事件
     </P
></LI
></UL
><P
><A
HREF="ref.iconv.html"
>iconv</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.iconv-mime-decode.html"
><B
CLASS="function"
>iconv_mime_decode()</B
></A
> -
      解码 MIME 头信息字段
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-mime-decode-headers.html"
><B
CLASS="function"
>iconv_mime_decode_headers()</B
></A
> -
      一次解码多个 MIME 头信息字段
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-mime-encode.html"
><B
CLASS="function"
>iconv_mime_encode()</B
></A
> -
      压缩 MIME 头信息字段
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-strlen.html"
><B
CLASS="function"
>iconv_strlen()</B
></A
> -
      返回字符串中的字符计数
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-strpos.html"
><B
CLASS="function"
>iconv_strpos()</B
></A
> -
      在堆栈中找到第一个出现的子串位置
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-strrpos.html"
><B
CLASS="function"
>iconv_strrpos()</B
></A
> -
      在堆栈中指定的范围内找到最后一个出现的子串位置
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-substr.html"
><B
CLASS="function"
>iconv_substr()</B
></A
> -
      从字符串中取出一部分
     </P
></LI
></UL
><P
><A
HREF="ref.stream.html"
>Streams</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.stream-copy-to-stream.html"
><B
CLASS="function"
>stream_copy_to_stream()</B
></A
> - Copies data from one stream
      to another
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-get-line.html"
><B
CLASS="function"
>stream_get_line()</B
></A
> - Gets line from stream resource up
      to a given delimiter
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-socket-accept.html"
><B
CLASS="function"
>stream_socket_accept()</B
></A
> - Accept a connection on a
      socket created by <A
HREF="function.stream-socket-server.html"
><B
CLASS="function"
>stream_socket_server()</B
></A
>
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-socket-client.html"
><B
CLASS="function"
>stream_socket_client()</B
></A
> - Open Internet or Unix domain
      socket connection
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-socket-get-name.html"
><B
CLASS="function"
>stream_socket_get_name()</B
></A
> - Retrieve the name of the
      local or remote sockets
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-socket-recvfrom.html"
><B
CLASS="function"
>stream_socket_recvfrom()</B
></A
> - Receives data from a
      socket, connected or not
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-socket-sendto.html"
><B
CLASS="function"
>stream_socket_sendto()</B
></A
> - Sends a message to a socket,
      whether it is connected or not
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.stream-socket-server.html"
><B
CLASS="function"
>stream_socket_server()</B
></A
> - Create an Internet or Unix
      domain server socket
     </P
></LI
></UL
><P
><A
HREF="ref.datetime.html"
>Date and time related</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.idate.html"
><B
CLASS="function"
>idate()</B
></A
> - Format a local time/date as integer
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.date-sunset.html"
><B
CLASS="function"
>date_sunset()</B
></A
> - Time of sunset for a given day and
      location
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.date-sunrise.html"
><B
CLASS="function"
>date_sunrise()</B
></A
> - Time of sunrise for a given day and
      location
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.time-nanosleep.html"
><B
CLASS="function"
>time_nanosleep()</B
></A
> - Delay for a number of seconds and
      nano seconds
    </P
></LI
></UL
><P
><A
HREF="ref.strings.html"
>Strings</A
>:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.str-split.html"
><B
CLASS="function"
>str_split()</B
></A
> - Convert a string to an array
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.strpbrk.html"
><B
CLASS="function"
>strpbrk()</B
></A
> - Search a string for any of a set of
      characters
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.substr-compare.html"
><B
CLASS="function"
>substr_compare()</B
></A
> - Binary safe optionally case
      insensitive comparison of two strings from an offset, up to length
      characters
     </P
></LI
></UL
><P
>Other:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.convert-uudecode.html"
><B
CLASS="function"
>convert_uudecode()</B
></A
> - decode a uuencoded string
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.convert-uuencode.html"
><B
CLASS="function"
>convert_uuencode()</B
></A
> - uuencode a string
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.curl-copy-handle.html"
><B
CLASS="function"
>curl_copy_handle()</B
></A
> - Copy a cURL handle
      along with all of it's preferences
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.dba-key-split.html"
><B
CLASS="function"
>dba_key_split()</B
></A
> - Splits a key in string
      representation into array representation
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.dbase-get-header-info.html"
><B
CLASS="function"
>dbase_get_header_info()</B
></A
> - Get the header info of a
      dBase database
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.dbx-fetch-row.html"
><B
CLASS="function"
>dbx_fetch_row()</B
></A
> - Fetches rows from a query-result
      that had the DBX_RESULT_UNBUFFERED flag set
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.fbsql-set-password.html"
><B
CLASS="function"
>fbsql_set_password()</B
></A
> - Change the password for a
      given user
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.file-put-contents.html"
><B
CLASS="function"
>file_put_contents()</B
></A
> - Write a string to a file
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ftp-alloc.html"
><B
CLASS="function"
>ftp_alloc()</B
></A
> - Allocates space for a file to be
      uploaded
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.get-declared-interfaces.html"
><B
CLASS="function"
>get_declared_interfaces()</B
></A
> - Returns an array of all
      declared interfaces
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.get-headers.html"
><B
CLASS="function"
>get_headers()</B
></A
> - Fetches all the headers sent by the
      server in response to a HTTP request
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.headers-list.html"
><B
CLASS="function"
>headers_list()</B
></A
> - Returns a list of response headers
      sent (or ready to send)
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.http-build-query.html"
><B
CLASS="function"
>http_build_query()</B
></A
> - Generate URL-encoded query string
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.image-type-to-extension.html"
><B
CLASS="function"
>image_type_to_extension()</B
></A
> - Get file extension for
      image-type returned by <A
HREF="function.getimagesize.html"
><B
CLASS="function"
>getimagesize()</B
></A
>,
      <A
HREF="function.exif-read-data.html"
><B
CLASS="function"
>exif_read_data()</B
></A
>,
      <A
HREF="function.exif-thumbnail.html"
><B
CLASS="function"
>exif_thumbnail()</B
></A
>,
      <A
HREF="function.exif-imagetype.html"
><B
CLASS="function"
>exif_imagetype()</B
></A
>
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.imagefilter.html"
><B
CLASS="function"
>imagefilter()</B
></A
> - Applies Filter an image using a
      custom angle
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.imap-getacl.html"
><B
CLASS="function"
>imap_getacl()</B
></A
> - Gets the ACL for a given mailbox
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ldap-sasl-bind.html"
><B
CLASS="function"
>ldap_sasl_bind()</B
></A
> - Bind to LDAP directory using SASL
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.mb-list-encodings.html"
><B
CLASS="function"
>mb_list_encodings()</B
></A
> - Returns an array of all
      supported encodings
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.pcntl-getpriority.html"
><B
CLASS="function"
>pcntl_getpriority()</B
></A
> - Get the priority of any
      process
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.pcntl-wait.html"
><B
CLASS="function"
>pcntl_wait()</B
></A
> - Waits on or returns the status of a
      forked child as defined by the waitpid() system call
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.pg-version.html"
><B
CLASS="function"
>pg_version()</B
></A
> - Returns an array with client, protocol
      and server version (when available)
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.php-check-syntax.html"
><B
CLASS="function"
>php_check_syntax()</B
></A
> - Check the syntax of the
      specified file
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.php-strip-whitespace.html"
><B
CLASS="function"
>php_strip_whitespace()</B
></A
> - Return source with stripped
      comments and whitespace
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.proc-nice.html"
><B
CLASS="function"
>proc_nice()</B
></A
> - Change the priority of the current
      process
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.pspell-config-data-dir.html"
><B
CLASS="function"
>pspell_config_data_dir()</B
></A
> - Change location of
      language data files
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.pspell-config-dict-dir.html"
><B
CLASS="function"
>pspell_config_dict_dir()</B
></A
> - Change location of the
      main word list
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.setrawcookie.html"
><B
CLASS="function"
>setrawcookie()</B
></A
> - Send a cookie with no url encoding
      of the value
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.snmp-read-mib.html"
><B
CLASS="function"
>snmp_read_mib()</B
></A
> - Reads and parses a MIB file into
      the active MIB tree
     </P
></LI
><LI
><P
>&#13;      <A
HREF="function.sqlite-fetch-column-types.html"
><B
CLASS="function"
>sqlite_fetch_column_types()</B
></A
> - Return an array of
      column types from a particular table
     </P
></LI
></UL
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
     The <A
HREF="ref.tidy.html"
>Tidy</A
> extension has also changed its
     API completely.
    </P
></BLOCKQUOTE
></DIV
></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="migration5.configuration.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="migration5.newconf.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>移植配置文件</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="migration5.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>新指令</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>