Eno\Loaders ยป string

string() โ†’ string
stringItems() โ†’ array
stringList() โ†’ array

Technically not a loader, but a wrapper for the standard accessors (which always return strings), you can use it if you prefer a 100% type-oriented value access terminology in your code.

enoname: Alice
number: 13
php$document = Parser::parse($input);

$document->string('name');  // returns 'Alice'
$document->string('number');  // returns '13'

// .... these are completely identical to ...

$document->field('name');  // returns 'Alice'
$document->field('number');  // returns '13'