Skip to content

Kirby 4.1.2

$page->toArray()

Converts the most important properties to array

$page->toArray(): array

Return type

array

Parent class

Kirby\Cms\Page

Example

<?php
$array = $page->toArray();
var_dump($array);