A
A
Alexey selftrips.ru2017-04-01 16:48:28
PHP
Alexey selftrips.ru, 2017-04-01 16:48:28

How to correctly access the server via json from under php?

Trying options

$jsonLink = ‘http://speller.yandex.net/services/spellservice.json/checkText?text=malavi’;
//1
$data1= json_decode($jsonLink);
var_dump($data1);
//2
$data2 = file_get_contents($jsonLink);
var_dump($data2);

in response to "silence"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2017-04-01
@selftrips

$data = json_decode(file_get_contents($jsonLink));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question