All pastes #424572 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-04 21:36 UTC
rendered paste body
function index_field($tbl, $fieldname) {
	$res = array();
	reset($tbl);
	while (list($key, $value) = each($tbl)) {
		$res[] = $value[field];
	}
	sort($res);
	return $res;
}	

print_r(index_field(_your table_, "SWAC_TEXT"));