Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url ="https://www.bentleymotors.com/content/brandmaster/master/pom/_jcr_content.api.json";
- $ch = curl_init();
- $timeout = 5;
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
- $data = json_decode(curl_exec($ch),true);
- curl_close($ch);
- var_dump($data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement