PagesExportImport::pagesToArray() method

Given a PageArray export it to a portable PHP array

Usage

// basic usage
$array = $porter->pagesToArray(PageArray $items);

// usage with all arguments
$array = $porter->pagesToArray(PageArray $items, array $options = []);

Arguments

NameType(s)Description
$itemsPageArray
$options (optional)array

Additional options to modify behavior

  • fieldNames (array): Export oly these field names, when specified. Default:[]

Return value

array


$porter methods and properties

API reference based on ProcessWire core version 3.0.252