In General, write a small application.
Users have settings, for example to notify them of changes or not, to send news by mail or not. All the settings are binary, i.e. on/off. The whole thing should be stored in the database. On the one hand you can create a bunch of columns and thus save settings, but it takes a lot of space and not as convenient.
An example of a configuration array:
Is there a way to collapse somehow the array of binary data into a single hash, which could, if desired, back to deploy?
$array["notification"] = true;
$array["welcome_msg"] = false;