Source Code:
(back to article)
<?php $url = 'https://jsonplaceholder.typicode.com/posts'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($ch); echo $data; curl_close($ch);
Result:
Report an issue