Save array in mysql database

前端 未结 6 1319
刺人心
刺人心 2020-11-29 03:17

I want to save extra information before sending the total order to Paypal. For each item I have created a single column in my MySQL database where I want to store it. Now I

6条回答
  •  醉话见心
    2020-11-29 04:16

    Use the PHP function serialize() to convert arrays to strings. These strings can easily be stored in MySQL database. Using unserialize() they can be converted to arrays again if needed.

提交回复
热议问题