<?php $test = new stdClass(); $array = array('test'=>'test_prop'); foreach ($array as $name => $prop){ $test->$array[$name] = 'SET!'; } print_r($test);
You have javascript disabled. You will not be able to edit any code.