db_findBy

Get data of a table by condition

Parameters
string $table

The table name to fetch data from

#
array $condition

The condition array for query

#
array $orderBy = []

The order by clause for query

#
int $limit = null

The number of records to return; No limit by default

#
Returns
array