<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Please help me unserialize this:</title>
		<link>https://legacy.forums.gravityhelp.com/topic/please-help-me-unserialize-this</link>
		<description>Gravity Support Forums Topic: Please help me unserialize this:</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 09:04:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/please-help-me-unserialize-this" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Please help me unserialize this:"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/please-help-me-unserialize-this#post-41351</link>
			<pubDate>Wed, 16 Nov 2011 18:58:23 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">41351@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Andy,&#60;/p&#62;
&#60;p&#62;Try this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/2874887&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2874887&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The get_serialized_usermeta function will require two parameters; the parent meta key and the child meta key. In your case, the parent meta key would be &#34;mp_biling_info&#34; and the child meta key would be &#34;phone&#34;. If you wanted to get another piece of user meta from the &#34;mp_billing_info&#34;, you would just pass whatever child meta key you want to retrieve.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andydarnell on "Please help me unserialize this:"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/please-help-me-unserialize-this#post-41244</link>
			<pubDate>Wed, 16 Nov 2011 00:36:25 +0000</pubDate>
			<dc:creator>andydarnell</dc:creator>
			<guid isPermaLink="false">41244@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm an idiot. Any chance of showing me what I would need to put into the functions.php to make this work? pretty please.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Please help me unserialize this:"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/please-help-me-unserialize-this#post-41239</link>
			<pubDate>Wed, 16 Nov 2011 00:18:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">41239@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How about the WordPress function maybe_unserialize?  That's based on the PHP unserialize function.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/maybe_unserialize&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/maybe_unserialize&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Sometimes the work has been done for you in WordPress though.  Maybe there is another function to extract the information you need without operating on the data directly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andydarnell on "Please help me unserialize this:"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/please-help-me-unserialize-this#post-41236</link>
			<pubDate>Tue, 15 Nov 2011 23:25:57 +0000</pubDate>
			<dc:creator>andydarnell</dc:creator>
			<guid isPermaLink="false">41236@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I understand that this returns a value from the usermeta table:&#60;/p&#62;
&#60;p&#62;add_filter('gform_field_value_user_firstname', create_function(&#34;&#34;, '$value = populate_usermeta(\'first_name\'); return $value;' ));&#60;/p&#62;
&#60;p&#62;How do I do it if the field in the table is serialized?&#60;/p&#62;
&#60;p&#62;I want to prepopulate a gravityform field that I have given the parameter &#34;phone&#34; It is serialized in a field called mp_billing_info as 'phone'&#60;/p&#62;
&#60;p&#62;Here's the data that is in that field:&#60;br /&#62;
a:9:{s:5:&#34;email&#34;;s:0:&#34;&#34;;s:4:&#34;name&#34;;s:17:&#34;Billing Full Name&#34;;s:8:&#34;address1&#34;;s:11:&#34;Billing One&#34;;s:8:&#34;address2&#34;;s:12:&#34;Billing Two &#34;;s:4:&#34;city&#34;;s:12:&#34;Billing City&#34;;s:5:&#34;state&#34;;s:2:&#34;GA&#34;;s:3:&#34;zip&#34;;s:5:&#34;30360&#34;;s:7:&#34;country&#34;;s:2:&#34;US&#34;;s:5:&#34;phone&#34;;s:10:&#34;7705555555&#34;;}&#60;/p&#62;
&#60;p&#62;Help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
