PHP 5 有了些新函數。下面是清單:
Arrays:
array_combine() - 用一個陣列作為鍵名,另一個陣列作為值建立一個新陣列
array_diff_uassoc() - 計算陣列的差別,並用會員提供的回呼函數作附加的索引檢查
array_udiff() - 用回呼函數比較資料來計算陣列的差別
array_udiff_assoc() - 計算陣列的差別並作附加的索引檢查。用回呼函數來比較資料
array_udiff_uassoc() - 計算陣列的差別並作附加的索引檢查。資料的比較和索引檢查都用回呼函數來完成
array_walk_recursive() - 對陣列的每個成員遞歸使用會員函數
array_uintersect_assoc() - 計算陣列的交集並作附加的索引檢查。用回呼函數來比較資料
array_uintersect_uassoc() - 計算陣列的交集並作附加的索引檢查。資料和索引都用回呼函數來比較
array_uintersect() - 計算陣列的交集。用回呼函數來比較資料
InterBase:
ibase_affected_rows() - 返回前一個查詢影響到的行的數目
ibase_backup() - 在服務管理器中發起一個後台任務並立即返回
ibase_commit_ret() - 送出一個事務但不關閉
ibase_db_info() - 請求有關資料庫的統計訊息
ibase_drop_db() - 移除一個資料庫
ibase_errcode() - 返回一個錯誤代碼
ibase_free_event_handler() - 取消一個登記的事件識別碼
ibase_gen_id() - 遞增特殊的發生器並返回其新值
ibase_maintain_db() - 在資料庫伺服器上執行一條維護指令
ibase_name_result() - 給結果集指定一個名字
ibase_num_params() - 返回一個準備好的查詢的參數數目
ibase_param_info() - 返回一個準備好的查詢的參數訊息
ibase_restore() - 在服務管理器中發起一個復原任務並立即返回
ibase_rollback_ret() - 回捲一筆事務並保留事務上下文
ibase_server_info() - 請求有關資料庫伺服器的統計訊息
ibase_service_attach() - 連線到服務管理器
ibase_service_detach() - 從服務管理器中斷
ibase_set_event_handler() - 註冊一個當事件發佈時要呼叫的回呼函數
ibase_wait_event() - 等待資料庫發佈一條事件
iconv:
iconv_mime_decode() - 解碼 MIME 頭訊息欄位
iconv_mime_decode_headers() - 一次解碼多個 MIME 頭訊息欄位
iconv_mime_encode() - 壓縮 MIME 頭訊息欄位
iconv_strlen() - 返回字串中的字元計數
iconv_strpos() - 在堆疊中找到第一個出現的子串位置
iconv_strrpos() - 在堆疊中特殊的範圍內找到最後一個出現的子串位置
iconv_substr() - 從字串中取出一部分
Streams:
stream_copy_to_stream() - Copies data from one stream to another
stream_get_line() - Gets line from stream resource up to a given delimiter
stream_socket_accept() - Accept a connection on a socket created by stream_socket_server()
stream_socket_client() - Open Internet or Unix domain socket connection
stream_socket_get_name() - Retrieve the name of the local or remote sockets
stream_socket_recvfrom() - Receives data from a socket, connected or not
stream_socket_sendto() - Sends a message to a socket, whether it is connected or not
stream_socket_server() - Create an Internet or Unix domain server socket
Date and time related:
idate() - Format a local time/date as integer
date_sunset() - Time of sunset for a given day and location
date_sunrise() - Time of sunrise for a given day and location
time_nanosleep() - Delay for a number of seconds and nano seconds
Strings:
str_split() - Convert a string to an array
strpbrk() - Search a string for any of a set of characters
substr_compare() - Binary safe optionally case insensitive comparison of two strings from an offset, up to length characters
Other:
convert_uudecode() - decode a uuencoded string
convert_uuencode() - uuencode a string
curl_copy_handle() - Copy a cURL handle along with all of it's preferences
dba_key_split() - Splits a key in string representation into array representation
dbase_get_header_info() - Get the header info of a dBase database
dbx_fetch_row() - Fetches rows from a query-result that had the DBX_RESULT_UNBUFFERED flag set
fbsql_set_password() - Change the password for a given user
file_put_contents() - Write a string to a file
ftp_alloc() - Allocates space for a file to be uploaded
get_declared_interfaces() - Returns an array of all declared interfaces
get_headers() - Fetches all the headers sent by the server in response to a HTTP request
headers_list() - Returns a list of response headers sent (or ready to send)
http_build_query() - Generate URL-encoded query string
image_type_to_extension() - Get file extension for image-type returned by getimagesize(), exif_read_data(), exif_thumbnail(), exif_imagetype()
imagefilter() - Applies Filter an image using a custom angle
imap_getacl() - Gets the ACL for a given mailbox
ldap_sasl_bind() - Bind to LDAP directory using SASL
mb_list_encodings() - Returns an array of all supported encodings
pcntl_getpriority() - Get the priority of any process
pcntl_wait() - Waits on or returns the status of a forked child as defined by the waitpid() system call
pg_version() - Returns an array with client, protocol and server version (when available)
php_check_syntax() - Check the syntax of the specified file
php_strip_whitespace() - Return source with stripped comments and whitespace
proc_nice() - Change the priority of the current process
pspell_config_data_dir() - Change location of language data files
pspell_config_dict_dir() - Change location of the main word list
setrawcookie() - Send a cookie with no url encoding of the value
snmp_read_mib() - Reads and parses a MIB file into the active MIB tree
sqlite_fetch_column_types() - Return an array of column types from a particular table
注: The Tidy extension has also changed its API completely.