Eno\Section » lists

lists($name) → array

Retrieve lists with the specified name from this current section.

enoroute:
- vienna
- paris
- rome

route:
- moscow
- riga
php$document = Parser::parse($input);

$routes = $document->lists('route');

foreach($routes as $route) {
  print_r( $route->items() );
}

// prints ...
// [ 'vienna', 'paris', 'rome']
// [ 'moscow', 'riga' ]

Parameters

$name

A string specifying the name of the lists to retrieve.

Return value

An array of ListElements.