PHP5 - function array2object()
Copy this code and paste it in your HTML
// PHP5 only...
function array2object
(array $array) { $object = new stdClass();
foreach($array as $key => $value) {
$object->$key = array2object($value);
} else {
$object->$key = $value;
}
}
return $object;
}
URL: http://www.ab-d.fr/date/2008-07-19/
Report this snippet
Comments
Subscribe to comments