E
E
ernestby2014-02-20 16:10:47
PHP
ernestby, 2014-02-20 16:10:47

How to parse a .json page?

From the page: rates.akchabar.com/get.json
you need to take the dollar and ruble exchange rates
and push them into variables
. And I will display the variables in the module on joomla

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Sokharev, 2014-02-20
@ernestby

$file = 'http://rates.akchabar.com/get.json';
$content = file_get_contents($file);
$array = json_decode($content, true);

continue to work with the array.

A
Alexander Zelenin, 2014-02-20
@zelenin

en2.php.net/json_decode

E
ernestby, 2014-02-20
@ernestby

And someone, if it's not difficult, can you pull out the data for me from the url?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question