<?php $obj = new stdClass; $dex = (int) "123"; $obj->$dex = "foo"; print_r($obj); $arr = (array) $obj; echo $arr["123"]; echo $arr[123];
You have javascript disabled. You will not be able to edit any code.