I ask serialization and unserialization by PHP script. Only sometimes I edit the array manually (in database.txt).
I ask serialization and unserialization by PHP script. Only sometimes I edit the array
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could export the array as a JSON (JavaScript Object Notation) string and later decode it again.
You can do this with the functions
json_encodeandjson_decode, respectively.Note, that all this might not be the best idea (I’m a bit worried about the filename you chose – if you want to have a DB, then use a DB! (e.g. sqlite)).