I want to save an array.
seralize does
json_encode does
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.
Now i can do "
without the two "," you need to ask
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.
[,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,]
Now i can do "
where field like %x,%
without the two "," you need to ask
where field like x,% or %,x,% or %,x