Sorry to ask, its late and I can\'t figure a way to do it... anyone can help?
$users = array(
array(
\"name\" => \"John\",
\"age\" =
something recursive maybe.
function removeReferences($inbound)
{
foreach($inbound as $key => $context)
{
if(is_array($context))
{
$inbound[$key] = removeReferences($context)
}elseif(is_object($context) && is_reference($context))
{
unset($inbound[$key]); //Remove the entity from the array.
}
}
return $inbound;
}