How to get only 1 role from user

Try this:

if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
    $first_role = array_shift($user->roles);
    echo $first_role;   
}

Function array_shift obtains the first element of the $user->roles array.

techhipbettruvabetnorabahisbahis forumueduseduseduseduedueduedusedusedusedus