db_findOneBy

Get one record 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

#
Returns
object|null