V
V
Viktor Klimov2017-02-03 18:24:53
PHP
Viktor Klimov, 2017-02-03 18:24:53

How to create a json file from an array in PHP and then access this json file through an AJAX request?

We have an associative data array in PHP , we need to create a json file from this array and process it with JS

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-02-03
@victorklimov

Seriously?
php.net/manual/ru/function.json-encode.php
php.net/manual/ru/function.file-put-contents.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question