CURLOPTRETURNTRANSFER
CURLOPT_RETURNTRANSFER is a cURL option that, when set to true, instructs the cURL transfer to return the transfer as a string instead of outputting it directly. By default, cURL outputs the transferred data to standard output. Setting this option allows you to capture the response body into a variable for further processing within your application.
When CURLOPTReturnTransfer is used, the curl_exec() function will return the contents of the transfer as a string.
This option is commonly used in scripting languages like PHP, where you might want to fetch the
Without CURLOPTReturnTransfer, the output of a cURL request would be printed directly to the browser or console,