$contactId = 123; $contact = CRM_Contact_BAO_Contact::getDisplayAndImage($contactId); $displayName = $contact['displayName']; $imageUrl = $contact['imageUrl'];
$contactId = 123; $contact = CRM_Contact_BAO_Contact::getDisplayAndImage($contactId); $displayName = $contact['displayName']; $imageUrl = $contact['imageUrl']; echo ""; echo "In this example, we use the same code as in Example 1 to retrieve the contact's display name and image URL. We then use this information to display the contact's name and image on a website. Package Library: CRM_Contact_BAO_Contact is part of the CiviCRM PHP library, which is a package for managing contacts, donations, memberships, events, and other information related to non-profit organizations.$displayName
";