PDA

View Full Version : vb's datastore


nVaux
Thu 30th Dec '04, 8:50pm
Well I am trying to build some hacks for vb, but i want to use vb's datastore function to save queries, however I am having a little issue knowing what some of the stuff means.

a:3:{s:13:"numbermembers";s:3:"379";s:11:"newusername";s:11:"Time Holder";s:9:"newuserid";s:3:"379";}

s:13:"numbermembers";s:3:"379";
what does a:3: mean, why is s:13 different than s:3 if if im correct its the key and the other one is value, i think. Hopefully someone can explain it to me thanks.

Icheb
Thu 30th Dec '04, 9:00pm
That's a so called serialized array.
a:3 = array, 3 entries
s:13 = string, 13 characters
numbermembers = key
379 = value

It would be easiest if you unserialize() that array, add your own key and then serialize it again.

nVaux
Thu 30th Dec '04, 9:03pm
ah ok, thanks a lot.