php - Array to json_encode in true formatGet the solution ↓↓↓
I have a json data from the my database table. It's like:
and, I'm printing after json_decode this data to the input "textarea" for my users change this json installment rate values.
It's showing like this in the textarea:
( [taksit_2] => 3.92 [taksit_3] => 4.91 [taksit_4] => 5.9 [taksit_5] => 6.88 [taksit_6] => 7.87 [taksit_7] => 8.86 [taksit_8] => 9.84 [taksit_9] => 10.83 [taksit_10] => 11.82 [taksit_11] => 12.8 [taksit_12] => 13.79 )
Now I want: after the user click "Update" button in the form; save new data (encoded json format, like the old data format.)
How can I do this so that it doesn't go out of format?
People are also looking for solutions of the problem: installation failed, reverting ./composer.json and ./composer.lock to their original content.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.