Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
CRM_HRCore_Helpers_Database::printSQLResult('SELECT id, display_name, contact_type FROM civicrm_contact');
// Prints something like:
// | id | display_name | contact_type |
// ------------------------------------
// | 1 | S.H.I.E.L.D | Organization |
// | 2 | Nick Fury | Individual |
// | 3 | Steve Rogers | Individual |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment