<?php $var = (object)array('a1' => 'Object one','a2' => 'Object two'); $num = "a2"; var_dump( $var->$num );
You have javascript disabled. You will not be able to edit any code.