新函数

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.


add a note add a note User Contributed Notes
There are no user contributed notes for this page.