Eno\ListElement » elements

elements() → array

Retrieve the items of this list as Field elements (instead of their direct values) in sequential order.

enonumbers:
- 6
- 8
- 19
php$list = Parser::parse($input)->element('numbers');

$list->elements();
  // returns [ [Field value="6"], [Field value="8"], [Field value="19"] ]

Return value

An array containing the items of this list as Field elements.