Converts the data in the record set to a different format, i.e. an array.
public to ( string $format, array $options = [] ) : mixed | ||
$format | string | Currently only `array`. |
$options | array | Options for converting: - `'indexed'` _boolean_: Allows to control how converted data of nested collections is keyed. When set to `true` will force indexed conversion of nested collection data. By default `false` which will only index the root level. |
return | mixed |