1

If I have the value of the comment id (cid) ex: 5

how do I get the user id (uid)?

3

You need to load the comment object:

$comment = comment_load($cid);
$uid = $comment->uid;
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy