Brian Dunning's FileMaker Custom Functions

phpUnserialize ( text )

Unserialize values which were serialized by PHP's serialize() function

  Average rating: 4.4 (27 votes) Log in to vote

Sam Barnum   Sam Barnum
360Works
http://360works.com

Share on Facebook Share on Twitter

  Sample input:
s:19:"http://360works.com";
  Sample output:
http://360works.com

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

If you come across values in a database which start with a type and contain colon-delimited data, that's probably a value written by PHP's serialize() function. This is a quick little function to convert those values to FileMaker types.

 

Comments

Daniel   Daniel, California
Feb 15, 2015
Arrays!
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.