[RSS Feed/News] json or serialize

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I want to save an array.

seralize does
a:18:{i:0;i:1;i:1;i:2;i:2;i:3;i:3;i:4;i:4;i:5;i:5;i:6;i:6;i:7;i:7;i:8;i:8;i:9;i:9;i:10;i:10;i:11;i:11;i:12;i:12;i:13;i:13;i:14;i:14;i:15;i:15;i:16;i:16;i:17;i:17;i:18;}

json_encode does
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]

When i want to save the longer version, please?

The only thing i could miss in the json could be to add a comma at the begin and end, if i want to do a search on this field...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom