public static function simpleArrayToObject($array, $object = null) {
        foreach ($array as $key => $value) {
            $object->$key = $value;
        }
        return $object;
    }
public static function simpleArrayToObject($array, $object = null) {
        foreach ($array as $key => $value) {
            $object->$key = $value;
        }
        return $object;
    }
public static function simpleArrayToObject ( $ array , $ object = null ) { foreach ( $ array as $ key => $ value ) { $ object -> $ key = $ value ; } return $ object ; }
utilisation simple array with numeric keys to object
utilisation simple array with numeric keys to object