Difference between PHP4 and PHP5

  • A new OOP model based on the Zend Engine 2.0
  • A new extension for improved MySQL support
  • Built-in native support for SQLite
  • A new error reporting constant, » E_STRICT, for run-time code suggestions
  • A host of new » functions to simplify code authoring

New Functions

In PHP 5 there are some new functions. Here is the list of them:

Arrays:

  • array_combine() – Creates an array by using one array for keys and another for its values
  • array_diff_uassoc() – Computes the difference of arrays with additional index check which is performed by a user supplied callback function
  • array_udiff() – Computes the difference of arrays by using a callback function for data comparison
  • array_udiff_assoc() – Computes the difference of arrays with additional index check. The data is compared by using a callback function
  • array_udiff_uassoc() – 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
  • array_walk_recursive() – Apply a user function recursively to every member of an array
  • array_uintersect_assoc() – Computes the intersection of arrays with additional index check. The data is compared by using a callback function
  • array_uintersect_uassoc() – Computes the intersection of arrays with additional index check. Both the data and the indexes are compared by using separate callback functions
  • array_uintersect() – Computes the intersection of arrays. The data is compared by using a callback function

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:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: