Returns false if no rows matched.
### Options
- cache - Returns the cached version of the query, if exists and stores the result in cache.
This is a non-persistent cache, and only lasts for a single request. This option
defaults to true. If you are directly calling this method, you can disable caching
by setting $options to false
public fetchAll ( string $sql, array | boolean $params = [], array $options = [] ) : boolean | array | ||
$sql | string | SQL statement |
$params | array | boolean | Either parameters to be bound as values for the SQL statement, or a boolean to control query caching. |
$options | array | additional options for the query. |
Результат | boolean | array | Array of resultset rows, or false if no rows matched |