Title: Export the value returned by a PHP function: maybe_unserialize
Last modified: April 21, 2023

---

# Export the value returned by a PHP function: maybe_unserialize

 *  Resolved [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/)
 * (@tonyrobertsacer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/)
 * Hi,
 * I am trying to use the ‘Export the value returned by a PHP function’ feature 
   to unserialize data on export using the maybe_unserialize php function.
 * The preview unserializes the fields properly, but in the export file the fields
   are blank.
 * Have I done something wrong or is this a bug?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [vjinfotech](https://wordpress.org/support/users/vjinfotech/)
 * (@vjinfotech)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16674389)
 * Hi,
 * Thanks for getting in touch.
 * unserialize gives array as output and csv not supported array format. So i suggest
   change back to other format like json format or other format
 * Let me know if you have any questions
 * Thanks and have a nice day
 *  Thread Starter [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/)
 * (@tonyrobertsacer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16674595)
 * Thanks very much for the super fast reply!
 * I’ve tried all formats, actually, and none export this data. json, xls, xlsx,
   csv, and ods contain blank fields, the XML drops them (because they are empty).
   I put “maybe_unserialize” into the “Export the value returned by a PHP function”
   field.
 * The field data in preview without “maybe_unserialize” set (note that this is 
   what exports) is as follows:
 * a:1:{i:0;s:9:”Australia”;}
 * Here is the same field in preview with “maybe_unserialize” set:
 * Australia
    -  This reply was modified 3 years, 1 month ago by [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/).
 *  Plugin Author [vjinfotech](https://wordpress.org/support/users/vjinfotech/)
 * (@vjinfotech)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16677228)
 * Hi,
 * please mail me on [support@vjinfotech.com](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/support@vjinfotech.com?output_format=md)
   with your issue with details. i will guide you as soon as possible
 * let me know if you still have any questions.
 * Thanks and have a nice day
 *  Thread Starter [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/)
 * (@tonyrobertsacer)
 * [3 years ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16753147)
 * Thanks very much. I did mail you on 24 April 2023 and then again on 5 May 2023
   but haven’t had a reply. Are you able to confirm you received my emails?
 *  Plugin Author [vjinfotech](https://wordpress.org/support/users/vjinfotech/)
 * (@vjinfotech)
 * [3 years ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16759589)
 * Hi,
 * Sorry for late reply.
 * I have checked we received your all mails.
 * we give you update soon
 * Thanks
 *  Thread Starter [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/)
 * (@tonyrobertsacer)
 * [3 years ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16805457)
 * Hi, any further update? We want to buy the pro version for our sites to get the
   ACF compatibility, but not if we can’t deal with serialized fields.
 * Thanks,
 * Tony
    -  This reply was modified 3 years ago by [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/).
 *  Thread Starter [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/)
 * (@tonyrobertsacer)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16835407)
 * Hi,
 * I’ve been thinking about this issue, and have uncovered the issue. While reviewing
   the features in the pro version (per my post, above) I noticed that ACF support
   is included. The fields that aren’t correctly unserializing are ACF fields.
 * We’ve just purchased the pro plugin, and they are unserializing as expected.
 * Apologies for this, and FYI in case anyone else comes across a similar issue.
 * Cheers,
   Tony

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Export the value returned by a PHP function: maybe_unserialize’ is closed
to new replies.

 * ![](https://ps.w.org/wp-import-export-lite/assets/icon-256x256.png?rev=2129449)
 * [WP Import Export Lite](https://wordpress.org/plugins/wp-import-export-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-import-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-import-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-import-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-import-export-lite/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tony Roberts](https://wordpress.org/support/users/tonyrobertsacer/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/export-the-value-returned-by-a-php-function-maybe_unserialize/#post-16835407)
 * Status: resolved