I run a situation where I put stuff into array like that:
$current_pms[] = array(
'from' => sofa_get_username($current_user->ID),
'to' => $valid_user,
'subject' => $subject,
'message' => $message,
'status' => 'unread',
'time' => current_time('mysql', $gmt = 0)
);
How can I mark each entry with its own unique ID so I can grab it later?
Thanks
You can always self-assign incremental numbers, that’s one option.
Or you can just use any key/value pairs.