Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3785

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>New Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Migrating from PHP 4 to PHP 5"
HREF="migration5.html"><LINK
REL="PREVIOUS"
TITLE="Migrating Configuration Files"
HREF="migration5.configuration.html"><LINK
REL="NEXT"
TITLE="New Directives"
HREF="migration5.newconf.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></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 PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="migration5.configuration.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Anexa B. Migrating from PHP 4 to PHP 5</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="migration5.newconf.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="migration5.functions"
>New Functions</A
></H1
><P
>&#13;    In PHP 5 there are some new functions. Here is the list of them:
   </P
><P
>Arrays:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.array-combine.html"
><B
CLASS="function"
>array_combine()</B
></A
> - Creates an array by using one array
      for keys and another for its values
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-diff-uassoc.html"
><B
CLASS="function"
>array_diff_uassoc()</B
></A
> - Computes the difference of
      arrays with additional index check which is performed by a user supplied
      callback function
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-udiff.html"
><B
CLASS="function"
>array_udiff()</B
></A
> - Computes the difference of arrays by
      using a callback function for data comparison
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-udiff-assoc.html"
><B
CLASS="function"
>array_udiff_assoc()</B
></A
> - Computes the difference of
      arrays with additional index check. The data is compared by using a
      callback function
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-udiff-uassoc.html"
><B
CLASS="function"
>array_udiff_uassoc()</B
></A
> - Computes the difference of
      arrays with additional index check. The data is compared by using a
      callback function. The index check is done by a callback function also
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.array-walk-recursive.html"
><B
CLASS="function"
>array_walk_recursive()</B
></A
> - Apply a user function
      recursively to every member of an array
    </P
></LI
></UL
><P
>InterBase:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.ibase-affected-rows.html"
><B
CLASS="function"
>ibase_affected_rows()</B
></A
> - Return the number of rows
      that were affected by the previous query
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-backup.html"
><B
CLASS="function"
>ibase_backup()</B
></A
> - Initiates a backup task in the
      service manager and returns immediately
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-commit-ret.html"
><B
CLASS="function"
>ibase_commit_ret()</B
></A
> - Commit a transaction without
      closing it
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-db-info.html"
><B
CLASS="function"
>ibase_db_info()</B
></A
> - Request statistics about a
      database
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-drop-db.html"
><B
CLASS="function"
>ibase_drop_db()</B
></A
> - Drops a database
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-errcode.html"
><B
CLASS="function"
>ibase_errcode()</B
></A
> - Return an error code
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-free-event-handler.html"
><B
CLASS="function"
>ibase_free_event_handler()</B
></A
> - Cancels a registered
      event handler
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-gen-id.html"
><B
CLASS="function"
>ibase_gen_id()</B
></A
> - Increments the named generator and
      returns its new value
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-maintain-db.html"
><B
CLASS="function"
>ibase_maintain_db()</B
></A
> - Execute a maintenance command
      on the database server
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-name-result.html"
><B
CLASS="function"
>ibase_name_result()</B
></A
> - Assigns a name to a result set
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-num-params.html"
><B
CLASS="function"
>ibase_num_params()</B
></A
> - Return the number of parameters
      in a prepared query
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-param-info.html"
><B
CLASS="function"
>ibase_param_info()</B
></A
> - Return information about a
      parameter in a prepared query
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-restore.html"
><B
CLASS="function"
>ibase_restore()</B
></A
> - Initiates a restore task in the
      service manager and returns immediately
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-rollback-ret.html"
><B
CLASS="function"
>ibase_rollback_ret()</B
></A
> - Rollback transaction and
      retain the transaction context
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-server-info.html"
><B
CLASS="function"
>ibase_server_info()</B
></A
> - Request statistics about a
      database
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-service-attach.html"
><B
CLASS="function"
>ibase_service_attach()</B
></A
> - Connect to the service manager
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-service-detach.html"
><B
CLASS="function"
>ibase_service_detach()</B
></A
> - Disconnect from the service manager
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-set-event-handler.html"
><B
CLASS="function"
>ibase_set_event_handler()</B
></A
> - Register a callback
      function to be called when events are posted
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.ibase-wait-event.html"
><B
CLASS="function"
>ibase_wait_event()</B
></A
> - Wait for an event to be posted
      by the database
    </P
></LI
></UL
><P
>iconv:</P
><P
></P
><UL
><LI
><P
>&#13;      <A
HREF="function.iconv-mime-decode.html"
><B
CLASS="function"
>iconv_mime_decode()</B
></A
> - Decodes a MIME header field
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-mime-decode-headers.html"
><B
CLASS="function"
>iconv_mime_decode_headers()</B
></A
> - Decodes multiple MIME
      header fields at once
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-mime-encode.html"
><B
CLASS="function"
>iconv_mime_encode()</B
></A
> - Composes a MIME header field
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-strlen.html"
><B
CLASS="function"
>iconv_strlen()</B
></A
> - Returns the character count of
      string
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-strpos.html"
><B
CLASS="function"
>iconv_strpos()</B
></A
> - Finds position of first occurrence
      of a needle within a haystack
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-strrpos.html"
><B
CLASS="function"
>iconv_strrpos()</B
></A
> - Finds the last occurrence of a
      needle within the specified range of haystack
    </P
></LI
><LI
><P
>&#13;      <A
HREF="function.iconv-substr.html"
><B
CLASS="function"
>iconv_substr()</B
></A
> - Cut out part of a string
    </P
></LI
></UL
><P
>Streams:</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
>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.idate.html"
><B
CLASS="function"
>idate()</B
></A
> - Format a local time/date as integer
    </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
><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
><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
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </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"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="migration5.newconf.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Migrating Configuration Files</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="migration5.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>New Directives</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>