RecordSet::getDistinct - jcobban/Genealogy GitHub Wiki

$recordSet->getDistinct($field)

Up: class RecordSet

This method returns an array containing all of the distinct values of a particular field within the set, in order by value.

parameter description
$field A string containing the name of a column in the table represented by the RecordSet. This value ignores the case of the text. This can either be an actual field name or one of the alternate field names supported by the class.

Examples:

$set		= new RecordSet('Names', array('surname' => 'Smith'));
$givens	        = $set->getDistinct('givenname');
$domains	= new RecordSet('Domains');
$langs	        = $domains->getDistinct('language');
$ccs		= $domains->getDistinct('countrycode');

Next: $recordset->delete($xml)