This is usually explained as meaning, "for, to recognize excellence in another man, one must know oneself." However, I think it could mean, "to know a man well is to know just himself, his unique personality." This interpretation, I believe, fits better with Hamlet's comments about comparing himself with Laertes.