generate functionThu, 15 Dec 2022

download image from url and return a full url of the image

function download_img($url): $img = curl_init($url); curl_setopt($img, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($img); return $result;

Want to kickstart your project?Use the new AI Studio to create your code