reference_name; if (isset($user_data['LastName'])) { $result = "{$user_data['LastName']} {$user_data['FirstName']} {$user_data['SecondName']} - {$user_data['Birthdate']} - паспорт: {$user_data['PassportSeries']} {$user_data['PassportNumber']}"; } if (isset($user_data['SNILS'])) { $result = "{$result} - СНИЛС: {$user_data['SNILS']}"; } if (isset($user_data['DeletionMark']) && $user_data['DeletionMark']) { $result = trim("{$result} помечен на удаление"); } return $result; } }