public static function getUserStringProp(User $user, $property)
    {
        $value = $user->getPropertyValues($property);
        return empty($value) ? '' : current($value);
    }
public static function getUserStringProp(User $user, $property)
    {
        $value = $user->getPropertyValues($property);
        return empty($value) ? '' : current($value);
    }
public static function getUserStringProp ( User $ user , $ property ) { $ value = $ user -> getPropertyValues ( $ property ) ; return empty ( $ value ) ? '' : current ( $ value ) ; }
Gets the value of a string property from a user
@param User $user
@param string $property
@return string
Gets the value of a string property from a user