RSS Feed/News serialize vs json for custom fields

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,997
Points
823

Reputation:

In new add-ons, is the recommendation to serialize or json encode data to the database where needed? In general, it seems like development patterns are moving away from serialize/unserialize to json_encode/decode. Even PHP's unserialize documentation goes as far as making this recommendation now: https://www.php.net/manual/en/function.unserialize.php

I'm curious if it's "best practice" to follow XenForo consistency of serialize/unserialize for new add-ons, or if I should work with...

Read more

Continue reading...
 
Status
Not open for further replies.
Top