<?php $arr = array('4' => 'foo', '4x' => 'bar'); $obj = (object)$arr; print_r($obj);
You have javascript disabled. You will not be able to edit any code.