Location: PHPKode > scripts > Craur > DracoBlue-Craur-ac926d0/php/tests/get_plain_value_as_array_elements_test.php
<?php
$node = Craur::createFromJson('{"items":"hans"}');

/*
 * Even though items is no numeric array and contains directly
 * the member, we want to get it as items!
 */
$items = $node->get('items[]');
assert(count($items) == 1);
assert($items[0] == "hans");
Return current item: Craur