SQLite compatibility implementation for the LEAST() SQL function.
public static function sqlFunctionLeast() { // Remove all NULL, FALSE and empty strings values but leaves 0 (zero) values. $values = FilterArray::removeEmptyStrings(func_get_args()); return count($values) < 1 ? NULL : min($values); }