Top Left Text cha

Web & App Development

If you want to insert an array, you can use the 'maybe_serialize()' function like:

$data = array('user_id' => $userID, 'groups' => maybe_serialize($groups));
$wpdb->insert('table', $data);

To get it back into an array, use 'maybe_unserialize()'

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X