$exportableFields = CRM_Contact_BAO_Contact::exportableFields(); print_r($exportableFields);
$contactType = "Individual"; $exportableFields = CRM_Contact_BAO_Contact::exportableFields($contactType); print_r($exportableFields);This code retrieves the exportable fields for contacts that are of the contact type "Individual" and prints them out. The CRM_Contact_BAO_Contact class is part of the package library for the CiviCRM system, which is an open-source CRM platform for nonprofits and other organizations.