$contact = new Contact("John", "Doe"); echo $contact->getFullName(); // Outputs "John Doe"
$contacts = [$contact1, $contact2, $contact3]; foreach ($contacts as $contact) { echo $contact->getFullName(); }This method is typically found in packages or libraries related to contact management or CRM (customer relationship management) systems.