$url = "https://jsonplaceholder.typicode.com/posts"; $data = file_get_contents($url); $characters = json_decode($data);