I am new in wordpress and I confuse how to solve this.
$redeem = array(
date('Ymd'),
$_POST['value']
);
if ($point && is_array($point)) {
$n = sizeof($point);
$point[$n] = $redeem;
}
update_user_meta(get_current_user_id(), 'value', $point);
} else {
update_user_meta(get_current_user_id(), 'value', $redeem );
}
This code work properly, it makes the data in my database become array. The problem is, how can I show the data from my database into my work page ?
a:3:{i:0;s:8:"20160421";i:1;s:3:"222";
This is the result of value in my database. I just want to show the value of "222".
Thanks
unserialize()function over that object: php.net/manual/en/function.unserialize.php