How can I read the value from mysql using PHP -
following value seeing in 1 of fields in mysql wordpress database
a:2:{i:0;i:31;i:1;i:23;}
what format? how can valued of alternate using php ?
that serialize()'d variable, can use unserialize() convert appropriate datatype - in case array integer indexes , values.
for wordpress there function called maybe_unserialize() useful database values if aren't sure if has been serialized or not.
Comments
Post a Comment