[eluser]sophistry[/eluser]
be careful with that "parseArrayToObject" function. arrays and object properties are different and play by different rules.
array keys can have space characters, for instance, while object properties must abide by variable naming rules: [-_a-zA-Z0-9]+
to see what i mean, pass an array to it like this:
Code:
$a = array('valid key'=>'value1','another valid key'=>'value2');
cheers.