Suppose if you need to store a dynamic set of parameters, options, whatever, attached to one entity, which approach would be better for this ?. These options come to mind:
- serialize ()
- json_encode ()
- create a table to store the type of the parameter and associate it with the required entity through an intermediate table
- something I didn't think of
It is very interesting to hear opinions, which of the approaches is better and why.