Hi, I am also looking for some code inside it,
As it is picking field 1 of logged in user and field 1 of displayed user and then comparing the value.
Is it possible to print the field name if it is equal ??
$field1 = xprofile_get_field_data($fd_id, $user_logged_in);
$field2 = xprofile_get_field_data($fd_id, $user_displayed);
if ( $field1 && $field2 )
{
$intersect = array_intersect((array)$field1,(array)$field2);
???
Thank you