Do you want to use json_encode or serialize for the php array database?

  question

Json_encode and serialize can both make array into string and store it in the database. Which is more convenient and efficient?

RecommendedjsonStandard format storage, which is not only convenient to make API but also can be directly provided to other systems for use.