Written by Sean Behan on Sun Jun 17th 2012
function array2obj($data) {
    return is_array($data) ? (object) array_map(__FUNCTION__,$data) : $data;
}
Source: http://www.serversidemagazine.com/php/how-to-convert-array-notation-to-object-notation

Tagged with..
#php #Programming

Just finishing up brewing up some fresh ground comments...