这就是我的存储数据函数如何用于此元组并获取数据
stored
$certification = array(
\'course_id\' => $certificate_id,
\'course\' => $certificate,
\'date\' => $date,
\'instructor\' => $certifying_instructor,
\'school\' => $school,
\'last_update\' => date(\'d-m-Y\'),
);
add_user_meta( $user_ids, \'certifications\', $certification );
and this get data
$users_detail = get_user_meta($user_id);
$certificates = $users_detail[\'certifications\'];
$n_course_id = array();
foreach ($certificates as $value) {
$course = unserialize($value);
$course_id = $course[\'course_id\'];
foreach ($course_id as $courses) {
array_push($n_course_id, $courses);
}
}
通过此函数,我可以获取所有列表,但我只想获取其中一个