get user ID code example
Example 1: wp get logged in user id
<?php
$user_id = get_current_user_id();
?>
Example 2: linux show uid
id -u $username
Example 3: membership get user id
MembershipUser mu = Membership.GetUser("username");
string userId = mu.ProviderUserKey.ToString();