Sorry to ask, its late and I can\'t figure a way to do it... anyone can help?
$users = array(
array(
\"name\" => \"John\",
\"age\" =
if you want to get rid of recursive elements:
a=3; $arr->b=&$arr;
//$arr=array('a'=>3, 'b'=>&$arr);
print_r($arr);
$arr_clean=eval('return '.strtr(var_export($arr, true), array('stdClass::__set_state'=>'(object)')).';');
print_r($arr_clean);
?>
output:
stdClass Object ( [a] => 3 [b] => stdClass Object *RECURSION* )
stdClass Object ( [a] => 3 [b] => )