T
T
TechNOIR2018-04-18 16:44:13
PHP
TechNOIR, 2018-04-18 16:44:13

PHP+Ajax. How to correctly get the values ​​of variables from PHP?

Good afternoon. Can you please tell me how to get the values ​​of variables from PHP?
Ie there is a script.php in it 3 variables $url1 $url2 and $url3.
You need an AJAX request to get them. How to do it right? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2018-04-18
@asmodeusta

Create an array of variables using compact and output to json using json_encode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question