$l=array("a","b","c");
print_r((object)$l); // stdClass Object ( [0] => a [1] => b [2] => c )
$array= array(
"a","b"=>
array("c","b",array("c","a")));
print_r((object)$array); // stdClass Object ( [0] => a [b] => Array ( [0] => c [1] => b [2] => Array ( [0] => c [1] => a ) ) )