Skip to content

Kirby 5.0.4

$response->toArray()

Converts all relevant response attributes to an associative array for debugging, testing or whatever.

$response->toArray(): array

Return type

array

This method modifies the existing $response object it is applied to and returns it again.

Parent class

Kirby\Cms\Response inherited from Kirby\Http\Response