Unserializing data doesn't work

前端 未结 3 1209
迷失自我
迷失自我 2021-01-21 13:35

Been at this for the past 5 hours and I\'m stumped. Tried the most ridiculous functions to try and fix it but to no avail.

I\'m retrieving data from a WP database. The

3条回答
  •  春和景丽
    2021-01-21 13:46

    You can unserialize twice:

    $unserialized = unserialize( unserialize( $usermeta['facebookmeta'] ) );

    NB: There's no need to serialize when using update_user_meta, it serializes automatically for you, cf. maybe_serialize: http://codex.wordpress.org/Function_Reference/maybe_serialize

提交回复
热议问题