I have a two-dimensional array. after editing the content, can I save it as a new two-dimensional number for the row?
Source: Internet
Author: User
I have A two-dimensional array. I want to edit the content and save it as A new two-dimensional number for the row. Do I read A two-dimensional array A from the cache, display the values of the two-dimensional array in A list table, and modify the value of the list by clicking save to overwrite the original array A. can this effect be achieved ??, My sweat... what is your cache carrier ?, What do you want to do after exploring the carrier text file? I have a two-dimensional array. after editing the content, do I save it as a new two-dimensional number to the row?
I read A two-dimensional array A from the cache, display the values of the two-dimensional array in A list table, and then
Modify the value of the list, click save, overwrite the original array,
Can this effect be achieved ??
------ Solution --------------------
My sweat...
What is your cache carrier?
------ Solution --------------------
Discussion
Carrier text file
------ Solution --------------------
What do you want to do?
Complicated structure
------ Solution --------------------
$ Ar = include ('data filename ');
$ Ar [0] ['type'] = $ ar [1] ['type'];
File_put_contents ('data filename ','
------ Solution --------------------
What about array serialization?
------ Solution --------------------
Why is such complex data not stored in the database? This allows you to operate on a specific value, which is quite convenient. You only need to connect the table relationship.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.