I’m probably a retard, but I couldn’t find a function that would change a simple array into object form.
Well for anyone who finds this, here is a simple function to convert a one dimensional php array.
function convert($array_in, $name='')
{
$array_out = array();
foreach($array_in as $item) {
array_push($array_out, array($name => $item));
}
return $array_out;
}