<?php $o = new stdClass(); $five = 5; $six = 6; $o->$five = 5; $o->$six = 6; $a = (array)$o; var_dump($a, $a[5]);
You have javascript disabled. You will not be able to edit any code.