<?php $test = "cool"; $tester = new stdClass(); $tester->$test = array(); for($i=0;$i<10;$i++){ array_push($tester->$test,$i); } print_r($tester);
You have javascript disabled. You will not be able to edit any code.