'foo', '4x' => 'bar');
$obj = (object)$arr;
print_r($obj);

echo "Let's say foo: \n".$obj->{'4'}."\n";
echo "Let's say bar: \n".$obj->{'4x'}."\n";