Serialize vs Implode

前端 未结 4 1574
执念已碎
执念已碎 2021-01-15 11:33

What do you think is the better way to go about storing a few image id\'s inside a record in a MySQL database? It\'s just the image id\'s which will be used to fetch the ima

4条回答
  •  旧巷少年郎
    2021-01-15 12:31

    I would pefer serialize or JSON-encode.
    It is more flexible and for example will allow you to add image title and other details there in future...

提交回复
热议问题