Eno\Field » raw
raw() → array or value
Retrieve a native PHP associative array representation of the value. The raw representation differs depending on whether there is a name (e.g. for a field value), or not (applies only to list item values).
enocolor: blue
numbers:
- 13
- 42
php$document = Parser::parse($input);
$document->element('color')->raw(); // returns [ 'color' => 'blue' ]
$list_tems = $document->element('numbers')->elements();
$list_tems[0]->raw(); // returns '13'
Return value
A native representation of the value element.