public static function getLabelsFromTable(string $tableName, string $idColumnName, string $labelColumnName): array
  {
    $query = "
select `%s`  id
,      `%s`  label
from   `%s`
where   nullif(`%s`,'') is not null";

    $query = sprintf($query, $idColumnName, $labelColumnName, $tableName, $labelColumnName);

    return self::executeRows($query);
  }
public static function getLabelsFromTable(string $tableName, string $idColumnName, string $labelColumnName): array
  {
    $query = "
select `%s`  id
,      `%s`  label
from   `%s`
where   nullif(`%s`,'') is not null";

    $query = sprintf($query, $idColumnName, $labelColumnName, $tableName, $labelColumnName);

    return self::executeRows($query);
  }
public static function getLabelsFromTable ( string $ tableName , string $ idColumnName , string $ labelColumnName ) : array { $ query = "
select `%s`  id
,      `%s`  label
from   `%s`
where   nullif(`%s`,'') is not null" ; $ query = sprintf ( $ query , $ idColumnName , $ labelColumnName , $ tableName , $ labelColumnName ) ; return self :: executeRows ( $ query ) ; }
Selects all labels from a table with labels.

@param string $tableName       The table name.
@param string $idColumnName    The name of the auto increment column.
@param string $labelColumnName The name of the column with labels.

@return array[]
Selects all labels from a table with labels .