DracoBlue/Craur — Issue #3: Retrieving a value from an array, should return the first elements value
Author: DracoBlue
Created: 2012-03-05 08:44:00+00:00
State: open

$node = Craur::createFromJson(json_encode(array(
'book' => array(
'author' => array(
array(
'@name' => 'Hans'
),
array(
'@name' => 'Paul'
),
)
)
)));

/*
* Should be the first name
*/
assert('Hans' == $node->get('book.author.@name'));