src/View/ArrayData.php
public static function array_to_object($arr = null)
    {
        $obj = new stdClass();
        if ($arr) {
            foreach ($arr as $name => $value) {
                $obj->$name = $value;
            }
        }
        return $obj;
    }
public static function array_to_object($arr = null)
    {
        $obj = new stdClass();
        if ($arr) {
            foreach ($arr as $name => $value) {
                $obj->$name = $value;
            }
        }
        return $obj;
    }
public static function array_to_object ( $ arr = null ) { $ obj = new stdClass ( ) ; if ( $ arr ) { foreach ( $ arr as $ name => $ value ) { $ obj -> $ name = $ value ; } } return $ obj ; }
Converts an associative array to a simple object

@param array
@return stdClass $obj
Converts an associative array to a simple object