$suffixes = CRM_Core_PseudoConstant::individualSuffix(); foreach ($suffixes as $suffix) { echo $suffix; }
$form->addElement('select', 'suffix', 'Suffix', CRM_Core_PseudoConstant::individualSuffix());This code adds a dropdown list of individual suffixes to a form in a CRM system. The CRM_Core_PseudoConstant individualSuffix function is part of the CiviCRM PHP library, which is a package of functions and classes that can be used to build CRM systems.