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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -