public static to ( mixed $format, mixed $data, array $options = [] ) : mixed | ||
$format | mixed | Format into which data will be converted, i.e. `'json'`. |
$data | mixed | Either an array or object (usually an instance of `Collection`) which will be converted into the specified format. |
$options | array | Additional handler-specific options to pass to the content handler. |
return | mixed |