新函數

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:

iconv:

Streams:

Date and time related:

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:

注: The Tidy extension has also changed its API completely.