protected static function associativeFrom(array &$table, $key_ref = 'id', $value_ref = 'title') {
		$assoc = [];
		foreach ($table as $row) {
			$assoc[$row[$key_ref]] = $row[$value_ref];
		}
		return $assoc;
	}
protected static function associativeFrom(array &$table, $key_ref = 'id', $value_ref = 'title') {
		$assoc = [];
		foreach ($table as $row) {
			$assoc[$row[$key_ref]] = $row[$value_ref];
		}
		return $assoc;
	}
protected static function associativeFrom ( array & $ table , $ key_ref = 'id' , $ value_ref = 'title' ) { $ assoc = [ ] ; foreach ( $ table as $ row ) { $ assoc [ $ row [ $ key_ref ] ] = $ row [ $ value_ref ] ; } return $ assoc ; }
Given an array converts it to an associative array based on the key
and value reference provided.

@param array array
@param string key reference
@param string value reference
@return array
Given an array converts it to an associative array based on the key and value reference provided .